Mega Code Archive

 
Categories / JavaScript DHTML / Document
 

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>