HTMLCollection

Properties

Link copied to clipboard
open override val length: Int

Functions

Link copied to clipboard
open operator fun get(index: Int): T
open operator fun get(key: Symbol.iterator): () -> JsIterator<T>
Link copied to clipboard
open override fun item(index: Int): T?

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

Link copied to clipboard
open inline operator fun iterator(): Iterator<T>
Link copied to clipboard
fun namedItem(name: String): T?

The namedItem() method of the HTMLCollection interface returns the first Element in the collection whose id or name attribute match the specified name, or null if no element matches.