textNode.data (Property)

The data associated with a text node within the document.


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

A text node is that textual content in between objects that represent HTML tags. If the HTML tags are bricks in a wall, then the text is the mortar joining them all together. The text nodes could also be called interstitial nodes because they exist in the cracks between HTML Elements.