item method

Element? item(
  1. int index
)

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

Note: Because the contents of an HTMLCollection are live, changes to the underlying DOM can and will cause the position of individual elements in the collection to change, so the index value will not necessarily remain constant for a given element.

Implementation

external Element? item(int index);