Jaime1985
10-28-2003, 08:58 AM
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
|
Click to See Complete Forum and Search --> : when a user clicks on tect box, how can that delete the txt inside it? Jaime1985 10-28-2003, 08:58 AM 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 ccoder 10-28-2003, 09:24 AM You could try something like this: <INPUT TYPE=text SIZE=50 VALUE="Testing clear on focus" ONCLICK="this.value = '';"> If you want to clear the text regardless of how the text box gets focus, then change ONCLICK to ONFOCUS. Jaime1985 10-28-2003, 09:35 AM thx webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |