Click to See Complete Forum and Search --> : Strlen in JavaScript


Law Chew Lim
February 1st, 1999, 08:43 PM
How to get the strlen in JavaScript?


e.g.





.

..


function OnChange()

{

strlen(document.form.MyName.value); <-

}


is there any function in JavaScript, that returns the length of a string?


Thanks

Brad Cadle
February 1st, 1999, 10:51 PM
Correct me if I am wrong (if I am I apologize), but I thought this site was strictly for Java. According to the book, thinking in Java, javascript's only similiarity to java is in its nam and that the name was a marketing ploy to build off the success of Java

brad Cadle
February 1st, 1999, 10:51 PM
Correct me if I am wrong (if I am I apologize), but I thought this site was strictly for Java. According to the book, thinking in Java, javascript's only similiarity to java is in its nam and that the name was a marketing ploy to build off the success of Java