previousSibling method
Retrieves the previous sibling of the current node in the filtered TreeWalker hierarchy and updates currentNode.
![]() ![]() |
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
Show:

