HTMLCollection class

HTMLCollection class

The HTMLCollection represents a generic collection of Element.

Inheritance: HTMLCollectionDOMObject

The HTMLCollection type exposes the following members:

Properties

PropertyDescription
lengthThe number of nodes in the list.

Returns the index-th item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.

Indexer

NameDescription
[index]The index.

Methods

MethodDescription
get_platform_typeThis method is used to retrieve ECMAScript object Type.
named_itemReturns the item in the collection matched specified name.

See Also