class js.html.HTMLCollection

Available on js

HTMLCollection is an interface representing a generic collection of elements (in document order) and offers methods and properties for traversing the list.

Note: This interface is called HTMLCollection for historical reasons (before DOM4, collections implementing this interface could only have HTML elements as their items).

HTMLCollections in the HTML DOM are live; they are automatically updated when the underlying document is changed.



Documentation for this class was provided by MDN.

Instance Fields

var length:Int

The number of items in the collection. Read only.

function item(index:Int):Node

function namedItem(name:String):Node