Interface

NodeList

NodeList

NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().

View Source js/lib.dom.d.ts, line 5301

Members

void

# forEach

Performs the specified action for each node in an list.

View Source js/lib.dom.d.ts, line 5314

Node | null

# item

Returns the node with index index from the collection. The nodes are sorted in tree order.

View Source js/lib.dom.d.ts, line 5309

number

# length

Returns the number of nodes in the collection.

View Source js/lib.dom.d.ts, line 5304