JavaScript DOM NamedNodeMap method: item()
[this page | pdf | back links]
The item() method (when applied to NamedNodeMap
objects in the JavaScript
DOM) returns
the node at the specified index position in a NamedNodeMap.
It
has the following syntax with the following parameters. It returns a node
object representing the node at the relevant index value, or null if the index is outside the
applicable range.
namednodemap.item(index) or namednodemap[index]
|
Parameter
|
Required / Optional
|
Description
|
|
index
|
Required
|
Number representing the
index of node to be returned (the index is zero-based, i.e. starts at zero)
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)