HTMLCollectionOf
The HTMLCollection interface represents a generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.
Extends
Extended by
Type Parameters
| Type Parameter |
|---|
T extends Element |
Indexable
[index: number]: T
Methods
[iterator]()
iterator: ArrayIterator<T>;
Returns
Inherited from
item()
item(index): T | null;
The HTMLCollection method item() returns the element located at the specified offset into the collection.
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
T | null
Overrides
namedItem()
namedItem(name): T | null;
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
T | null
Properties
length
readonly length: number;
The HTMLCollection.length property returns the number of items in a HTMLCollection.