Node.NextSibling

Node.NextSibling property

The read-only nextSibling property of the Node interface returns the node immediately following the specified one in their parent’s childNodes, or returns null if the specified node is the last child in the parent element.

public Node NextSibling { get; }

Property Value

A Node representing the next sibling of the current node, or null if there are none.

Remarks

Reference:

DOM Standard - defines a platform-neutral model for events, aborting activities, and node trees.DOM Standard (DOM) # dom-node-nextsibling.GitHub - repository hosts the DOM Standard.

See Also