Hi:

Handle the OnFocus event with the blur() method inside the text element

<input type="text" name="dummy" value="defaultvalue" onFocus="blur()"; >

Also you have to handle a method when the user "submits",  setting the field name
"dummy" with the "defaultvalue". This is necesary because the user can use a
Clipboard PASTE over the text field


AZEEM SALIM A wrote:

> Hi all,
>
>                 Does anybody know how to prevent a user from entering ASCII
> values in a text field in a HTML form
>
> Regards,
> Azeem
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
begin:vcard
n:Sosa Iglesias;Jes�s
tel;work:(525) 3338278
x-mozilla-html:TRUE
url:http://proy.imp.mx/sippi/jesus.html
org:Instituto Mexicano del Petr�leo;Computer Sciencies
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chem. Eng.
adr;quoted-printable:;;Eje Central Lazaro Cardenas 152=0D=0ASan Bartolo Atepehuacan;Mexico ;DF;07730;Mexico
fn:Jes�s Sosa Iglesias
end:vcard

Reply via email to