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.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<title>testbed</title>
<style type="text/css">
</style>
<script language="JavaScript" type="text/javascript">
function check(txt) {
if (txt.value.length > 50) {
txt.value = txt.value.substr(0,50);
}
}
</script>
</head>
<body>
<form>
<textarea name="bla" rows="5" cols="50" onchange="check(this);">Max 50 chars</textarea>
</form>
</body>
</html>
or you could check onkeydown and catch them just as they hit the max chars/words.
See [b]Counting words in a textarea --- how?[/b] (thread216-599789)
[/ignore][code]CodeHere