parentNode method
Retrieves the parent object in the document hierarchy relative to the current node and updates currentNode.
![]() ![]() |
Syntax
var retval = TreeWalker.parentNode();Parameters
This method has no parameters.
Return value
Type: Node
Object that receives the parent node in the filtered TreeWalker hierarchy.
Standards information
Remarks
parentNode sets the currentNode to the returned node.
See also
Show:

