onclick clear contents

liunx

Guest
Hi, I am Josh. I have set up a simple form to log into the webmail client that I have recently installed. I have the form set up where it says "username" in the username field. I was wondering if it is possible to have the form clear itself when it is clicked on so you won't have to delete it out and then type password, you know just click and type. I believe I have seen this done somewhere before but I can't seem to find out how to do this or where it was done. I would appreciate any help available. Thanx in advance. <br />
<br />
- Josh<!--content-->yeah sure:<br />
<br />
INPUT TYPE="text" NAME="text_field" SIZE=50 VALUE="Type your password here! " onClick="this.value=''"><!--content-->hey thanks man, I can't believe I spent three and a half hours searching for (onfocus="this.value=''"):rocker:<!--content-->
 
Back
Top