Element.nodeValue (Property)

Part of the internal document hierarchy management.


DOM level - 1
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myElement.nodeValue

This object is part of the browser's internal DOM management.

The value of this attribute always seems to be the null object for objects that represent HTML tags. This is probably because all the other attributes of the tags can be stored in named properties of the Element object or in attributes of those properties collected into the Attributes object that belongs to it.

When the node is a #text value, the text itself is stored here.

See also:Element object, Node.nodeValue