Element.parentNode (Property)

Part of the internal DOM hierarchy management.


DOM level - 1
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Opera - 5.0
Property/method value type:Element object
JavaScript syntax:-myElement.parentNode

This is part of the internal DOM management provided by the browser. Although the functionality is similar to parentElement, it is not quite the same since there are two hierarchies superimposed on one another. One hierarchy simply contains objects representing the HTML tags. The other contains additional objects that help the browser maintain the text between the HTML tags.

The parentElement property is not DOM compliant whereas parentNode is.

See also:Document object, Element object, Element.parentElement, Hierarchy of objects, Node.parentNode

Property attributes:


insert figure 0051