Easy Tutorial
❮ Prop Url Autofocus Prop Video Startdate ❯

HTML DOM Embed Object


Embed Object

The Embed object represents an HTML <embed> element.

Accessing an Embed Object

You can use getElementById() to access an <embed> element:

Creating an Embed Object

You can use document.createElement() to create an <embed> element:

Embed Object Properties

Property Description
height Sets or returns the height of the embedded file (height attribute value)
src Sets or returns the src attribute value of the embed element (embedded file address)
type Sets or returns the type attribute value of the embed element (embedded file type)
width Sets or returns the width of the embedded file (width attribute value)

Standard Attributes and Events

The Embed object also supports standard attributes and events.


Related Articles

HTML Reference: HTML <embed> Tag

❮ Prop Url Autofocus Prop Video Startdate ❯