HTML DOM parentNode Property
Example
Return
document.getElementById("item1").parentNode;
Try it »
Definition and Usage
The parentNode property returns the parent node of a node.
If the specified node has no parent node, it returns null .
Browser support





All major browsers support the parentNode property
Syntax
node
.parentNode
Technical Details
| Return Value: | Returns the parent node as a node object. |
|---|---|
| DOM version | Core Level 1 Node Object |
Element object