firstChild method

Retrieves a reference to the first 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.2Internet Explorer 9

Syntax

var oNode = TreeWalker.firstChild();

Parameters

oNode [out, retval]

Type: Node

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

Return value

Type: Node

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

Standards information

Remarks

firstChild sets the currentNode to the returned node.

See also

TreeWalker

 

 

Show:
© 2014 Microsoft