'readOnly' Example : Read Only « Document « JavaScript DHTML
- JavaScript DHTML
- Document
- Read Only
'readOnly' Example
<html>
<body>
<input type="text" id="myText" value="This text field is not editable" size="30">
<script language="JavaScript">
document.getElementById("myText").readOnly = true;
</script>
</body>
</html>
Related examples in the same category