HTMLCollection Interface

Subinterfaces:
HTMLAllCollection HTMLFormControlsCollection HTMLOptionsCollection HTMLPropertiesCollection
Since:
DOM Level 2
DOM Properties
get onlyunsigned long
collection.length
DOM Interface Methods
Node
collection.item(unsigned long index)
collection[index]
collection(index)
Parameters:
index - index of the node to be returned, where the first index is 0 and the last index is list.length - 1
Return value:
the (index + 1)th node in the list (for example, if index is 3, the fourth node is returned) if 0 <= index < list.length, or else null
Node
collection.namedItem(DOMString name)
collection[name]
collection(name)