HTML DOM Embed Object

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");

Try It Yourself

Creating Embed Object

You can create an <embed> element by using the document.createElement() method:

var x = document.createElement("EMBED");

Try It Yourself

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.

Related Pages

HTML Tutorial:HTML Plugins

HTML Reference Manual:HTML <embed> Tag