parentNode method

Retrieves the parent object in the document hierarchy relative to the current node and updates currentNode.

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

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

TreeWalker

 

 

Show:
© 2014 Microsoft