'readOnly' Example : Read Only « Document « JavaScript DHTML






'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