HTML DOM Embed Object
- 上一页 <em>
- 下一页 <fieldset>
Embed object
The Embed object is a new object in HTML5.
The Embed object represents the HTML <embed> element.
Access Embed object
You can access <embed> elements using getElementById():
var x = document.getElementById("myEmbed");
Create Embed object
You can create <embed> elements using the document.createElement() method:
var x = document.createElement("EMBED");
Embed object 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 | 设置或返回 embed 元素中 width 属性的值。 |
- 上一页 <em>
- 下一页 <fieldset>