Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html><head><title>textarea length</title>
<SCRIPT language="JavaScript">
<!--
function count_change(form){
Msg = form.txtarea.value;
Msglen= Msg.length;
//maximum length
MaxLen=20;
if (Msglen > MaxLen ){
form.txtarea.value=Msg.substring(0,MaxLen);
alert(MaxLen+" symbols allowed only!!")
} form.txtarea.focus(); }
//-->
</SCRIPT>
</head>
<BODY>
<FORM name="form1" METHOD="POST" >
<TEXTAREA cols=50 name=txtarea rows=5 MAXLENGTH=20 WRAP=virtual onChange="count_change(document.forms[0])" onkeypress="count_change(document.forms[0])"></TEXTAREA><br>
<input type=button value="show length" onclick="alert(this.form.txtarea.value.length)">
</form>
</body>
</html>