Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text box read-only works on IE5 but not on Netscape?

Status
Not open for further replies.

FlatHead

Programmer
Oct 13, 2000
50
GB
I have a text box which i want to make read only but unfortunatelly this works only on IE5 using:

Response.Write &quot;<td width=100 colspan = 4 align=left><input type=text name=Jobno size=13 value=&quot; &amp; oRecord(&quot;orderso&quot;) &amp; &quot; readonly></td>&quot;

by the way the example is on ASP format but this is not making any difference.

Please help me to make the box read only on netscape as well.

Thanks harris
 
readonly is an IE only property.. you can emulate it by using

<input type=&quot;text&quot; onfocus=&quot;this.blur()&quot;> adam@aauser.com
 

Your code works good in Netscape6 and Opera5 also.
For NN4.x use a trick of onfocus=&quot;this.blur()&quot;

Andrew | starway@mail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top