Returns the depth within the document tree at which the specified node appears.
Syntax
depth(pNode)
Parameters
pNode
Object. Node for which the depth is to be returned.
Returns
Long integer. Returns the depth within the document tree at which the specified node appears. The document element, or root node, returns the value 0; its children return the value 1, and so on.
Applies To