textNode.length (Property)

The length of the text in a textNode object.


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

The text enclosed in a text node can be measured for length by this property. However it is still stored as a string value in the data property and you should not assume that it is an array simply because it has a length property.

Property attributes: