TOC PREV NEXT INDEX

domref



item


The item method retrieves a node from the tree by index.

Syntax

nodeItem = element.item(index)
 

Parameters

nodeItem is a node.

index is the index of the node to be fetched. Index is zero-based.

Example

tbls = document.getElementsByTagName("table");
 
first_table = tbls.item(1);
 

Notes

A value of NULL is returned if the index is out of range.

Specification

item
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX