Embed type Property
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
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
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