Interface HTMLCollection

A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.

MDN Reference

interface HTMLCollection {
    length: number;
    item(index): Element;
    namedItem(name): Element;
}

Hierarchy (view full)

Properties

Methods

Properties

length: number

Sets or retrieves the number of objects in a collection.

MDN Reference

Methods

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

    MDN Reference

    Parameters

    • name: string

    Returns Element