Character count Javascript (hitung karakter)

This is example HTML code for count all Character in a text area. U only need 1 form include 1 button, 1 text, 1 text area and 1 javascript. Copy all code below in the body tag

<form method="POST">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<textarea rows="6" name="charcount" cols="45" wrap="virtual"></textarea>
</td>
</tr>

<tr>
<td width="100%"><div align="right">
<p>
<input name="button" type="button" onclick="count(this)" value="Calculate" />
<input type="text" name="displaycount" size="8">
</p>
</div></td>
</tr>
</table>
</form>

<script language="JavaScript">
function count(what){
formcontent=what.form.charcount.value
what.form.displaycount.value=formcontent.length
}
</script>


Screenshot: