nextSibling Method

Returns the next sibling node of the caller’s node.

nextSibling();

Return Value

If this node has sibling nodes, the return value is the next sibling node (of type SGNode). Otherwise, the return value is null.