Embed type property
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 property describes the MIME type of the embedded content.
Browser support





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
Embed object