|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can i disable a text box, which works in both IE and NN. But my reqd is that even cut,copy and paste should not work. If you see properly even in IE when we make the text control disabled we cut the content.
Thanks Raja |
|
#2
|
|||
|
|||
|
try to see http://www.experts-exchange.com/bin/BuyPAQ?qid=10154550
|
|
#3
|
|||
|
|||
|
formname.elementname.disabled=true (disable)
formname.elementname.disabled=false (enable) |
|
#4
|
|||
|
|||
|
Netscape 4.x does not recognize the 'disabled' property. For Netscape, use onfocus="this.blur()" and even onkeypress="this.blur()" inside the text element tag. In IE, people can get around this by tabbing into the control, so you should also add 'disabled' in the tag.
Even so, in Netscape with the right context menu, you can still mess around with it some. Ironically, IE, even though having the 'disabled' property, still doesn't completely disable the control. Thus for both browsers, you need to also include a function that is called by the onChange event, which restores the control back to its original value whenever anyone messes with it. |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Disable Text Box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|