nextSibling
Returns the node immediately following the current one in the tree.
Syntax
next_element = element.nextSibling
Parameters
next_element is the element node directly after the current element in the list of siblings (i.e., the list of children for the parentNode).
Example
// in a table, the cells are siblings cell1 = document.getElementById("td1"); cell2 = cell1.nextSibling;
Notes
Returns NULL if there are no more nodes.
Specification
nextSibling
Netscape Communications http://developer.netscape.com |