W3cubDocs

/Haxe JavaScript

NodeList

package js.html

extended by PropertyNodeList, RadioNodeList

Available on js

NodeList objects are collections of nodes such as those returned by properties such as Node.childNodes and the document.querySelectorAll() method.

Documentation NodeList by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

read onlylength:Int

The number of nodes in the NodeList.

Methods

item(index:Int):Node

Returns an item in the list by its index, or null if the index is out-of-bounds; can be used as an alternative to simply accessing nodeList[idx] (which instead returns undefined when idx is out-of-bounds).

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/NodeList.html