...

View Full Version : input tag onFocus clear the value text?



manga101
10-05-2002, 03:59 AM
this is prob ez for u guys..

but i'm having problem.

i have a form which i have added a value = "enter email here" when the user click in the input field.. i want it to disspear.and show that blinking horizontal line where they can now type..


thx

adios
10-05-2002, 04:18 AM
http://www.javascriptkit.com/script/script2/cleardefault.shtml

manga101
10-07-2002, 08:14 PM
cool thx.

i didnt need the js..

i just added this into the input and it works fine too..



onFocus="this.value=''"

adios
10-07-2002, 08:54 PM
That is JavaScript.

manga101
10-07-2002, 09:02 PM
ya .. but i meant the header thing i didnt need to put it..

redhead
10-08-2002, 03:07 PM
hmmmmm..... youd pobably be better off using http://www.javascriptkit.com/script/script2/cleardefault.shtml because if the user went back to edit the field after they had originally filled it in, it would clear again... probably slightly annoying...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum