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