Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • HTMLAllCollection

Indexable

[index: number]: Element

Index

Properties

Methods

Properties

length

length: number

Returns the number of elements in the collection.

Methods

item

  • Returns the item with index index from the collection (determined by tree order).

    Parameters

    • Optional nameOrIndex: string

    Returns HTMLCollection | Element | null

namedItem

  • 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 HTMLCollection | Element | null

Generated using TypeDoc