English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML DOM Embeds Attribute

HTML DOM Document Object

embedsA read-only property that returns the list of embedded elements<embed>Elements in the current document.

The elements in the list are sorted in the order they appear in the source code.

Syntax:

document.embeds
var x = document.embeds.length;
Test See‹/›

Browser Compatibility

All browsers fully support the embeds attribute:

Attribute
embedsIsIsIsIsIs

Property

AttributeDescription
lengthReturns the list of<embed>Number of Elements

Method

MethodDescription
[index)Returns the specific node at the given index starting from zero in the list. If the index number is out of range, it returns null.
item(index)Returns the specific node at the given index starting from zero in the list. If the index number is out of range, it returns null.
namedItem(id)Returns a specific node that matches the ID name with the string specified by name. If the id does not exist, it returns null.

Technical Details

Return Value:OneHTMLCollectionObject
DOM Version:DOM Level3

HTML DOM Document Object