Get the lengh of a string : length : String JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » String » length »

 

Get the lengh of a string

















<html>
<head>
<script type="text/javascript" language="javascript">
<!-- //
onload = function(){
 var myString = "AAA";
 document.write(myString + " has a length of " + myString.length + " characters.");
 }
// -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo String
» length