Click to See Complete Forum and Search --> : How to delete text automatically


Aronya1
03-14-2003, 07:17 PM
Hi,

This should be easy for somebody. I'm using CSS & Dreamweaver, in case it matters. Have created a form with a couple of textarea fields & a textfield. All 3 have some default text instructions inside them to prompt the user. What I would like is for that text to disappear when the user clicks or tabs into the field.

I'm guessing I need some JavaScript, but not being a programmer, I don't know for sure. Any suggestions?

TIA
Aronya1

Aronya1
03-14-2003, 08:33 PM
Hi Dave,

Thanks for responding, but exactly how to I use your code? I tried adding it to my <textarea> tag, but I get a Runtime debug error when the page loads. What else do I need to do?


Thanks,
Aronya1

Aronya1
03-15-2003, 12:31 AM
Thanks Dave. I figured out the details. Works like a charm.