Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
previousSibling

previousSibling method

Retrieves the previous 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.2Internet Explorer 9

 

Syntax

var oNode = TreeWalker.previousSibling();

Parameters

oNode [out, retval]

Type: Node

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

Return value

Type: Node

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

Standards information

Remarks

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

See also

TreeWalker

 

 

Show:
© 2015 Microsoft