THE INDIA LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Embed Object


Embed Object

The Embed Object is new in HTML5.

The Embed object represents an HTML <embed> element.

Access an Embed Object

You can access an <embed> element by using getElementById():

var x = document.getElementById("myEmbed"); Try it

Create an Embed Object

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

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

Embed Object Properties

Property Description
height Sets or returns the value of the height attribute in an embed element
src Sets or returns the value of the src attribute in an embed element
type Sets or returns the value of the type attribute in an embed element
width Sets or returns the value of the width attribute in an embed element

Standard Properties and Events

The Embed object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML Plug-ins

HTML reference: HTML <embed> tag