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 對象