nextSibling method

Retrieves the next sibling of the current node in the filtered TreeWalker hierarchy and updates currentNode.

Document Object Model (DOM) Level 2 Traversal and Range Specification, Section 1.2

Syntax

var oNode = TreeWalker.nextSibling();

Parameters

This method has no parameters.

Return value

Type: Node

Object that receives the next child of a parent node in the filtered TreeWalker hierarchy.

Standards information

Remarks

nextSibling sets the currentNode to the returned node. It returns null if there are no more child nodes.

See also

TreeWalker

 

 

Show:
© 2014 Microsoft