The parentNode PropertyThe parentNode property returns the parent node of the present node. Unlike the parentElement property (see the previous topic), you can use this property with any W3C node, not just with elements. You can see the support for this property in Table 5.44. Table 5.44. The parentNode Property
Here's an example: var parentNode = document.getElementById("node1").parentNode |