lastChild method

Retrieves a reference to the last child of the current node of the filtered TreeWalker hierarchy and updates currentNode.

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

Syntax

var oNode = TreeWalker.lastChild();

Parameters

This method has no parameters.

Return value

Type: Node

Object that receives the last child node in the filtered TreeWalker hierarchy.

Standards information

Remarks

lastChild sets the currentNode to the returned node.

See also

TreeWalker

 

 

Show:
© 2014 Microsoft