Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Embed type property

Embed type property

Embed Object Reference Embed object

Example

Return the MIME type of the embedded content:

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

x

The output is:

application/x-shockwave-flash

Try it »


Definition and Usage

The type property is used to set or return The type of the element.

The type property describes the MIME type of the embedded content.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the type attribute.


Syntax

Return the type property:

embedObject

.type

Set the type property:

embedObject

.type=

MIME_type

Attribute values

Value Description
MIME_type The MIME type of the embedded content.

Technical Details

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

Related pages

HTML Reference Manual: HTML type Attribute


Embed Object Reference Embed object