ZVON > References > DOM1 Reference

length (attribute)

Owning interface and usage:  
CharacterData.length

Member of these other interfaces :  
CDATASection, Comment, Text

Readonly:   yes

Type:   unsigned long

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


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