HTML DOM Embed Object
Vložit objekt
Objekt Embed představuje HTML prvek <embed>.
Přístup k vloženému objektu
K prvku <embed> můžete přistupovat pomocí getElementById():
Příklad
var x = document.getElementById("myEmbed");
Vytvořte vložený objekt
Element <embed> můžete vytvořit pomocí metody document.createElement():
Příklad
var x = document.createElement("EMBED");
Vlastnosti vložit objekt
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 |
Standardní vlastnosti a události
Objekt Embed také podporuje standardní vlastnosti a události .
Související stránky
Výukový program HTML: Zásuvné moduly HTML
HTML reference: HTML tag <embed>