parentNode Method

Returns the parent node of the caller’s node.

parentNode();

 

Return Value

If this node has a parent node, the return value is a node object of the type SGNode. Otherwise, the return value is null.