JavaScript 參考手冊(cè)
embeds 返回文檔中所有 <embeds> 元素的集合。
注意: 元素在集合中的順序是它們?cè)谠创a中的順序。
提示: 也可以參考 Embed 對(duì)象。
集合 | |||||
---|---|---|---|---|---|
embeds | Yes | Yes | Yes | Yes | Yes |
document.embeds
屬性 | 描述 |
---|---|
length | 返回集合中 <embed> 元素的數(shù)量。 注意: 該屬性是只讀的。 |
方法 | 描述 |
---|---|
[index] | 返回集合中指定索引(從 0 開始)對(duì)應(yīng)的 <embed> 元素 。 注意: 如果索引值超出范圍,返回 null。 |
item(index) | 返回集合中指定索引(從 0 開始)對(duì)應(yīng)的 <embed> 元素 。 注意: 如果索引值超出范圍,返回 null。 |
namedItem(id) | 返回集合中指定索引對(duì)應(yīng)的 <embed> 元素。 注意: 如果 id 不存在,則返回 null。 |
DOM 版本: | Core Level 3 Document Object |
---|---|
返回值: | HTMLCollection 對(duì)象,表示文檔中所有的 <embed> 元素。元素在集合中的排序是其在源代碼中的排序。 |
JavaScript 參考手冊(cè): HTML DOM Embed 對(duì)象
HTML 參考手冊(cè): HTML <embed> 標(biāo)簽
其他擴(kuò)展