-
HTML Form Alteration
Hey all...
I'm trying to achieve an effect where the value of a form is written inside of the actual text field and when the user clicks inside it, the value dissappears.
I've seen this a lot with search fields, for example. It will say something like "Search here" and when you click inside the text field to enter your query, the "Search here" disappears.
How is that done?
-
-
<input type="text" value="test" onFocus="if (this.value=='test') this.value = '';" onBlur="if (this.value=='') this.value='test';">
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
-
-
-
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks