when a user clicks on tect box, how can that delete the txt inside it?

liunx

Guest
OK I have a website that by default puts some txt into a txt box, when the user clicks on the txt box I want the information to disapear, ive seen this on a few websites. thx for any help<!--content-->You could try something like this:<br />
<INPUT TYPE=text SIZE=50 VALUE="Testing clear on focus" ONCLICK="this.value = '';"><br />
<br />
If you want to clear the text regardless of how the text box gets focus, then change ONCLICK to ONFOCUS.<!--content-->thx<!--content-->
 
Back
Top