Chartbreaker
    Preparing search index...

    Interface HTMLCollection

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

    Hierarchy

    • HTMLCollectionBase
      • HTMLCollection

    Indexable

    Index

    Properties

    Methods

    Properties

    length: number

    The HTMLCollection.length property returns the number of items in a HTMLCollection.

    MDN Reference

    Methods

    • The HTMLCollection method item() returns the element located at the specified offset into the collection.

      MDN Reference

      Parameters

      • index: number

      Returns null | Element

    • The namedItem() method of the HTMLCollection interface returns the first Element in the collection whose id or name attribute match the specified name, or null if no element matches.

      MDN Reference

      Parameters

      • name: string

      Returns null | Element