Easy Tutorial
❮ Prop Password Size Jsref Setutcmilliseconds ❯

HTML DOM nextSibling Property

Element Object

Example

Returns the node immediately following a specified element:

document.getElementById("item1").nextSibling;

Definition and Usage

The nextSibling property returns the node immediately following a specified element (in the same tree level).

The returned node is returned as a node object.

Note: If there is no node following the element, it returns null.


Browser Support

All major browsers support the nextSibling property.


Syntax

Technical Details

Return Value: The node immediately following the specified node, as a node object.
DOM Version Core Level 1 Node Object
--- ---
❮ Prop Password Size Jsref Setutcmilliseconds ❯