I want to make a website with an online contact form that when someone clicks on the text box the text "Name" disappears, but after the person goes ahead writes their real name clicks outside the text box and clicks back in the text box the name doesn't disappear.
At the moment my text field deletes whatever is inside the textbox no matter if its user input or my predetermined value.
Here is my current code:
<INPUT NAME="name" TYPE="TEXT" CLASS="text_1" onFocus="this.v alue='';return false;" value="WRITE YOUR NAME HERE" SIZE="30">
Any help would be great. If I should go a totally different approach please let me know :-) I am very new and inexperienced but I'm very eager to learn.
**** - email removed (against site rules)
At the moment my text field deletes whatever is inside the textbox no matter if its user input or my predetermined value.
Here is my current code:
<INPUT NAME="name" TYPE="TEXT" CLASS="text_1" onFocus="this.v alue='';return false;" value="WRITE YOUR NAME HERE" SIZE="30">
Any help would be great. If I should go a totally different approach please let me know :-) I am very new and inexperienced but I'm very eager to learn.
**** - email removed (against site rules)
Comment