This free script provided by JavaScript Kit

///////////////////////////////////////////////////////////////////////////////////////////////
Character Remaining:
Step 2 Add key events on text area to monitor character count in it:1 /////////////////------------------------------------------------------- function countChars() { var l = "140"; var str = document.getElementById("textArea").value; var len = str.length; if(len <= l) { document.getElementById("txtLen").value=l-len; } else { document.getElementById("textArea").value=str.substr(0, 140); }} /////////////////------------------------------------------------------- DIV{ PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-WEIGHT: bold; BACKGROUND: #000000; PADDING-BOTTOM: 5px; MARGIN-LEFT: 0px; PADDING-TOP: 5px; color:#FFFF00;}INPUT{ BORDER:#000000; FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #FFFF00;}TEXTAREA{ FONT-WEIGHT: bolder; BACKGROUND-COLOR: #DDCC00; WIDTH:100%;}