Interface HTMLCollection

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

Hierarchy

  • HTMLCollectionBase
    • HTMLCollection

Properties

Methods

Properties

Readonlylength

length: number

Sets or retrieves the number of objects in a collection.

MDN Reference

Methods

[iterator]

item

  • item(index): null | Element
  • Retrieves an object from various collections.

    MDN Reference

    Parameters

    • index: number

    Returns null | Element

namedItem

  • namedItem(name): null | Element
  • Retrieves a select object or an object from an options collection.

    MDN Reference

    Parameters

    • name: string

    Returns null | Element

Settings

Member Visibility

On This Page

Properties
Methods

AltStyle によって変換されたページ (->オリジナル) /