<html>
<body>
Address:<br>
<textarea id="myTextarea" readonly>
342 Alvin Road
Ducksburg</textarea>
<p>Click the button to find out whether the text area is read-only, or not.</p>
<button type="button" onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myTextarea").readOnly;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_textarea_readonly by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 18:17:02 GMT -->
</html>