TOC PREV NEXT INDEX

domref



nextSibling


Returns the node immediately following the current one in the tree.

Syntax

node = elementNode.nextSibling
 

Parameters

node is a node object.

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
TOC PREV NEXT INDEX