Easy Tutorial
❮ Event Ondragover Prop Style Borderimageoutset ❯

HTML DOM parentNode Property

Element Object

Example

Return the parent node of an <li> element:


Definition and Usage

The parentNode property returns the parent node of the specified node.

If the specified node has no parent, it returns null.


Browser Support

All major browsers support the parentNode property.


Syntax

Technical Details

Return Value: Returns the parent node as a Node object.
DOM Version Core Level 1 Node Object
--- ---

Element Object

❮ Event Ondragover Prop Style Borderimageoutset ❯