View Full Version : input tag onFocus clear the value text?
manga101
10-05-2002, 02: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, 03:18 AM
http://www.javascriptkit.com/script/script2/cleardefault.shtml
manga101
10-07-2002, 07: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, 07:54 PM
That is JavaScript.
manga101
10-07-2002, 08:02 PM
ya .. but i meant the header thing i didnt need to put it..
redhead
10-08-2002, 02: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...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.