HTML DOM Element parentNode
HTML DOM Element parentNode Property
The parentNode property is read-only property and it return the parent node of an element or node.
Syntax:-
Its syntax is:- element.parentNode OR node.parentNode
Return:-
Its return is:- parent node else null