Javascript Reference
Categories: text

javascript text length

@March 15, 2008, 1:22 a.m.
lengthFirefox/Netscape/NN 6 IE 5 Chrome/Safari/DOM 1  

Read-only  

Provides a count of characters in the text node.

 
Example
 
var howMany = document.getElementById("myP").firstSibling.length;
 
Value

Integer.

 
Default

0


Powered by Linode.