Object na Embed na DOM na HTML
- Rufin ɗanar <em>
- Baya ɗanar <fieldset>
Embed object
Embed object is a new object in HTML5.
Embed object represents the HTML <embed> element.
Access Embed object
You can access <embed> elements by using getElementById():
var x = document.getElementById("myEmbed");
Create Embed object
You can create <embed> elements by using the document.createElement() method:
var x = document.createElement("EMBED");
Embed object properties
ɗanar | 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 | A set or return the value of the type attribute of the embed element. |
width | Tayin ko ɗanar ɗanar width ɗanar ɗanar. |
- Rufin ɗanar <em>
- Baya ɗanar <fieldset>