Embed typeProperty

Embed 对象参考手册Embed Object

Examples

Return the MIME type of the embedded content:

var x = document.getElementById("myEmbed").type;
xThe output result is:
application/x-shockwave-flash

Try it Yourself »

Definition and Usage

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

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


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the type property.


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.

Technical Details

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


Related Pages

HTML Reference Manual:HTML <embed> type Attribute


Embed 对象参考手册Embed Object Other Extensions