HTML DOM Embed Object
- Previous Page <em>
- Next Page <fieldset>
Embed Object
The Embed object is a new object in HTML5.
The Embed object represents the HTML <embed> element.
Accessing Embed Object
You can access the <embed> element by using getElementById():
var x = document.getElementById("myEmbed");
Creating Embed Object
You can create an <embed> element by using the document.createElement() method:
var x = document.createElement("EMBED");
Embed Object Properties
Properties | Description |
---|---|
height | Set or return the value of the height attribute of the embed element. |
src | Set or return the value of the src attribute of the embed element. |
type | Set or return the value of the type attribute of the embed element. |
width | Sets or returns the value of the width attribute of the embed element. |
Standard Properties and Events
Embed Object Supported StandardsPropertiesAndEvents.
- Previous Page <em>
- Next Page <fieldset>