You are here: irt.org | FAQ | JavaScript | Form | Q1662 [ previous next ]
Try:
<form> <textarea onKeyUp="if (this.value.length > 100) { alert('100 chars max'); this.value = this.value.substring(0,99); }"> </textarea> </form>
©2018 Martin Webb