Noob Flash Rss

Get Character Length of a String with JavaScript

0

Posted by Aaron | Posted in JavaScript | Posted on 22-02-2009

Occasionally I run across the need to get the number of characters in a string. You can use the code below to determine the character length of a string.

var myString = 'This is a String';
alert(myString.length);

Related posts:

  1. JavaScript Find and Replace

Post a comment