SQL PHP HTML ASP JavaScript articles and free scripts to download
JavaScript String

String Length function in JavaScript

Length of a string can be calculated by using JavaScript length function. Here is an example of how to get length of a string.

var my_str="Hello world!"
document.write(my_str.length)



The above string will give a out put of 12. Note that the command will count back and forward blank space also.


Google+

Nibedita Sahu18-01-2011
How to remove blank spaces between two characters using javascript
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked




HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer