Read-only text box

05-22-2002, 08:08 PM
does anyone know how to create a read-only textbox?
I'm tried to blur the txtbox in the onFocus handler, but it wont work if the user drag-and-drop text from other boxes into it...

Anyone got a suggestion?

05-22-2002, 08:25 PM
There is a readonly attribute in an Input Text form element, but it
isn't supported in netscape.
<INPUT TYPE="text" NAME="mydata" READONLY>

05-22-2002, 08:30 PM
i figure that it may be the best solution to it, although it'll only support ie4+ and netscape 6+... It's still better than blurring it.

thanx anyway

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum