Interface HTMLAllCollection
interface HTMLAllCollection {
length: number;
"[iterator]"(): ArrayIterator<Element>;
item(nameOrIndex?: string): Element | HTMLCollection;
namedItem(name: string): Element | HTMLCollection;
[index: number]: Element;
}
length: number;
"[iterator]"(): ArrayIterator<Element>;
item(nameOrIndex?: string): Element | HTMLCollection;
namedItem(name: string): Element | HTMLCollection;
[index: number]: Element;
}
Indexable
 Index
Properties
Methods
 Methods
[iterator]
- "[iterator]"(): ArrayIterator<Element>
- Returns ArrayIterator<Element>
item
- item(nameOrIndex?: string): Element | HTMLCollection
- Returns the item with index index from the collection (determined by tree order). - Parameters- OptionalnameOrIndex: string
 - Returns Element | HTMLCollection
namedItem 
- namedItem(name: string): Element | HTMLCollection
- Returns the item with ID or name name from the collection. - If there are multiple matching items, then an HTMLCollection object containing all those elements is returned. - Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute. - Parameters- name: string
 - Returns Element | HTMLCollection
Returns the number of elements in the collection.
MDN Reference