JavaScript Read-Only Text Box

 

This script will display a Read-Only text field.

 

 

Example

 

Script Source

 

<The Form >

<form name="myForm" action="">
<input type=text name=box value="This text field is READ-ONLY!" onFocus="this.value='This text field is READ-ONLY!';" readonly size="35">
</form>

 

Please let me know if this script was helpful to you.

[rating]