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

Embed type Property

Embed Object Reference Embed Object

Example

Return the MIME type of the embedded content:

var x = document.getElementById("myEmbed").type;

The result of x will be:

application/x-shockwave-flash

Try it yourself »


Definition and Usage

The height property sets or returns the value of the type attribute in an <embed> element.

The type attribute specifies the MIME type of the embedded content.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The type property is supported in all major browsers.


Syntax

Return the type property:

embedObject.type

Set the type property:

embedObject.type=MIME_type

Property Values

Value Description
MIME_type The MIME type of the embedded content.
Look at IANA MIME types for a complete list of standard MIME types.

Technical Details

Return Value: A String, representing the MIME type of the embedded content


Related Pages

HTML reference: HTML <embed> type attribute


Embed Object Reference Embed Object

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