HTMLCollectionBase

The HTMLCollection interface represents 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

Inheritors

Properties

Link copied to clipboard
abstract external val length: Int

Functions

Link copied to clipboard
open operator external fun get(index: Int): T
Link copied to clipboard
abstract external fun item(index: Int): T?

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