HTML DOM Embed type property
Examples
Returns 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
type attribute is used to set or return type <embed> element.
type attribute describes the embedded content MIME type.
Browser Support
All major browsers support the type attribute.
grammar
Returns type attributes:
embedObject .type
Setting type attributes:
embedObject .type= MIME_type
Property Value
值 | 描述 |
---|---|
MIME_type | 嵌入内容的 MIME 类型。 |
technical details
return value: | String representing the MIME type of the embedded content. |
---|
Related Pages
HTML Reference Manual: HTML <the embed> of the type attribute
Embed the object