'readOnly' Example : Read Only : Document JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » 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>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Document
» Read Only