TextBox - making it un clickable and typable

Hi,<br />
I have actually created a textfield which is used to display error msg using onFocus. But the con of it is if user accidentally click on the white area so called inivisble textfield, he can type on it and thus led to confusion..just wondering if there is any codes that can disable the textfield being type or click by user but allow me to display msg on it.<!--content-->something like this will work<br />
<br />
<input type="text" name="t1" readonly="readonly"/><!--content-->Hi Khalid Ali,<br />
<br />
Thanks for the code. Didnt know there is actually such a code for that. Is it a new code?<br />
<br />
<br />
Thanks =)<!--content-->to save a little bit of time ,not too much, but you can just type readonly by itself, you don't need to put: readonly="readonly".<!--content-->Originally posted by shortiee4 <br />
to save a little bit of time ,not too much, but you can just type readonly by itself, you don't need to put: readonly="readonly". Under XHTML you certainly do.<!--content-->
 
Back
Top