Return the length of a string
By admin | May 21, 2008
Sometimes you need to get the length in numbers of a string
you can easily do it by using javascript
Syntax:
<html>
<body>
<script type=”text/javascript”>
var text=”Count me!”;
document.write(text.length);
</script>
</body>
</html>
Thanks
krates
Topics: Javascript | Comments Off on Return the length of a string
Related Links: