HTML DOM Element nextSibling
HTML DOM Element nextSibling Property
The nextSibling property is a read-only property and it returns the next node on the same tree level. It actually returns the node object.
Syntax:-
Its syntax is:- element.nextSibling OR node.nextSibling
Return:-
Its return is:- next sibling of the element