X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook