Objeto incrustado HTML DOM
Objeto incrustado
El objeto Embed representa un elemento HTML <embed>.
Acceder a un objeto incrustado
Puede acceder a un elemento <embed> usando getElementById():
Ejemplo
var x = document.getElementById("myEmbed");
Crear un objeto incrustado
Puede crear un elemento <embed> utilizando el método document.createElement():
Ejemplo
var x = document.createElement("EMBED");
Propiedades del objeto incrustado
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 |
Propiedades y eventos estándar
El objeto Embed también es compatible con las propiedades y los eventos estándar .
páginas relacionadas
Tutorial HTML: Complementos HTML
Referencia HTML: etiqueta HTML <incrustar>