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

Hierarchy

  • HTMLCollectionBase
    • HTMLCollection

Properties

Methods

Properties

length: number

Sets or retrieves the number of objects in a collection.

Methods

  • Retrieves an object from various collections.

    Parameters

    • index: number

    Returns null | Element

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

    Parameters

    • name: string

    Returns null | Element