Embed type 属性

Embed 对象参考手册 Embed 对象

实例

返回嵌入内容的 MIME 类型:

var x = document.getElementById("myEmbed").type;
x输出结果为:
application/x-shockwave-flash

尝试一下 »

定义和用法

type 属性用于设置或者返回 <embed> 元素的类型。

type 属性描述了嵌入内容的 MIME 类型。


浏览器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

所有主流浏览器都支持 type 属性。


语法

返回 type 属性:

embedObject.type

设置 type 属性:

embedObject.type=MIME_type

属性值

描述
MIME_type嵌入内容的 MIME 类型。

技术细节

返回值:字符串,表示了嵌入内容的 MIME 类型。


相关页面

HTML 参考手册: HTML <embed> type 属性


Embed 对象参考手册 Embed 对象

0 个评论

要回复文章请先登录注册