2014-02-18, 01:00 PM
No matter what I do I can't add characters counter that will count message and subject area!
This is not what I am adding just to post here!
For some reason form is not detected by JavaScript!
This is not what I am adding just to post here!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="JavaScript">
function countit(what){
formcontent=what.form.subject.value
what.form.displaycount.value=formcontent.length
}
</script>
</head>
<body>
<form>
<table style="width: 400px;" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 200px;">
<textarea name="subject" wrap="virtual" onkeyup="countit(this)"></textarea>
</td>
</tr>
<tr>
<td style="width: 200px;"><div align="right"><input type="text" name="displaycount" size="20" readonly="readonly"></div>
</td>
</tr>
</table>
</form>
</body>
</html>
For some reason form is not detected by JavaScript!