HTMLDOM埋め込みオブジェクト
埋め込みオブジェクト
Embedオブジェクトは、HTMLの<embed>要素を表します。
埋め込みオブジェクトにアクセスする
getElementById()を使用して、<embed>要素にアクセスできます。
例
var x = document.getElementById("myEmbed");
埋め込みオブジェクトを作成する
document.createElement()メソッドを使用して、<embed>要素を作成できます。
例
var x = document.createElement("EMBED");
オブジェクトのプロパティを埋め込む
Property | Description |
---|---|
height | Sets or returns the value of the height attribute in an embed element |
src | Sets or returns the value of the src attribute in an embed element |
type | Sets or returns the value of the type attribute in an embed element |
width | Sets or returns the value of the width attribute in an embed element |
標準のプロパティとイベント
Embedオブジェクトは、標準のプロパティとイベントもサポートします。
関連ページ
HTMLチュートリアル:HTMLプラグイン
HTMLリファレンス:HTML <embed>タグ