Oggetto incorporato DOM HTML
Incorpora oggetto
L'oggetto Embed rappresenta un elemento HTML <embed>.
Accedi a un oggetto da incorporare
Puoi accedere a un elemento <embed> usando getElementById():
Esempio
var x = document.getElementById("myEmbed");
Crea un oggetto da incorporare
Puoi creare un elemento <embed> usando il metodo document.createElement():
Esempio
var x = document.createElement("EMBED");
Incorpora proprietà oggetto
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 |
Proprietà ed eventi standard
L'oggetto Embed supporta anche le proprietà e gli eventi standard .
Pagine correlate
Tutorial HTML: plug-in HTML
Riferimento HTML: tag HTML <embed>