Search


Search something to see results

HTMLCollection

interface HTMLCollection {
    length: number;
    item(index: number): null | Element;
    namedItem(name: string): null | Element;
    "[iterator]"(): ArrayIterator<Element>;
    [index: number]: Element;
}

Hierarchy

  • HTMLCollectionBase
    • HTMLCollection

Indexable

Index

Properties

Methods

Properties

length: number

Sets or retrieves the number of objects in a collection.

MDN Reference

Methods

Retrieves an object from various collections.

MDN Reference

Parameters

  • index: number

Returns null | Element

Retrieves a select object or an object from an options collection.

MDN Reference

Parameters

  • name: string

Returns null | Element

Returns ArrayIterator<Element>