TOC PREV NEXT INDEX

Put your logo here!


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

core


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX