onclick() function

paStiSSet
paStiSSet used Ask the Experts™
on
what must i type on "onclick" in fact to do, the text-input clear, for example:

name: [name________] #default value

name: [_____________] #value when click (null)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
<input type=text onfocus="this.value = '';" ...>

Commented:
onclick event would work too

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial