NamedNodeMap.item() (Method)

The usual collection access by item number also applied to named node maps.


DOM level - 1
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:Node object
JavaScript syntax:-myNamedNodeMap.item(anIndex)
Argument list:anIndexA reference to an element in a collection

This accesses nodes by their position in the linear sequence of nodes within the map. The index value is zero based so if the value specified in equal to or greater than the number of nodes in the map, a null value will be returned instead.


See also:Collection.Item()