ZVON
>
References
>
DOM2 Reference
Intro
/
Search
/
ZVON
DOM2 reference
>
Core:
CharacterData
>
length
[Go to standard]
[Glossary]
[Help]
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 unit
s 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