Objeto de incorporação HTML DOM
Incorporar objeto
O objeto Embed representa um elemento HTML <embed>.
Acessar um objeto incorporado
Você pode acessar um elemento <embed> usando getElementById():
Exemplo
var x = document.getElementById("myEmbed");
Criar um objeto incorporado
Você pode criar um elemento <embed> usando o método document.createElement():
Exemplo
var x = document.createElement("EMBED");
Incorporar propriedades do objeto
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 |
Propriedades e eventos padrão
O objeto Embed também suporta as propriedades e eventos padrão .
Páginas relacionadas
Tutorial HTML: Plug-ins HTML
Referência HTML: tag HTML <embed>