March 23, 200917 yr For someone who's been doing this for a while, this shouldn't be hard to answer. I'm placing a text field on a site for people to sign up for a newsletter. In the field there is the text, "Enter your e-mail address". I'd like to make it so that when someone clicks in the field the text disappears, because right now the person has to highlight and delete the text. What's the code?
March 23, 200917 yr Author Nevermind. Just discovered onfocus="this.value=''" and onfocus="this.select()"
March 23, 200917 yr Author Don't forget onblur, make the text re appear if they click out Thanks! Brilliant!
Create an account or sign in to comment