<html>
<body>
Address:<br>
<textarea id="myTextarea" maxlength="30">
342 Alvin Road
Ducksburg</textarea>
<p>Click the button to display the value of the maxlength attribute in the text area.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myTextarea").maxLength;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_textarea_maxlength by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:17:50 GMT -->
</html>