Easy Tutorial
❮ Jsref Tolocalelowercase Prop Fieldset Form ❯

HTML DOM previousSibling Property

Element Object

Example

Returns the node immediately preceding a given node:


Definition and Usage

The previousSibling property returns the node immediately preceding a given node (at the same tree level).

The returned node is returned as a node object.

Note: If there is no such node, this property returns null.


Browser Support

All major browsers support the previousSibling property.


Syntax

Technical Details

Return Value: The node immediately preceding the specified node (at the same tree level), as a node object
DOM Version Core Level 1 Node Object
--- ---

Element Object

❮ Jsref Tolocalelowercase Prop Fieldset Form ❯