ZVON > References > DOM2 Reference

length (attribute )

Owning interface and usage:  
CharacterData.length

Member of these other interfaces:  
CDATASection, Comment, Text

Readonly:   yes

Type:   unsigned

Description:  
The number of 16-bit units that are available through the data attribute and the substringData() method.


Example:
JavaScript:
  var txt = document.createTextNode('AAA-BBB');
  var output = txt.length;
Output:
desired your browser
7