Home | Web Design Tutorials | Free Graphics | Custom Graphics | Newsletter | Products | Specials | SEO | Sound Effects | Benefits | Login | View Cart |
Form Trick: Disappearing TextYou should see "You@YourISP.com" in the form field below. If you click your cursor inside the text box, the sample text should disappear if your browser supports JavaScript, and most do. This allows you to set sample text inside a text box and have it disappear when your visitor clicks inside the text box to type their own input. This saves your visitor the trouble of having to clear your sample text before typing. It's as simple as adding an "on focus" command to your form field:onFocus="this.value=''"So, for the above form field, the entire form element is coded like this: <input type="text" name="email" value="You@YourISP.com" size="24" onFocus="this.value=''">< The "value" is what will appear inside the text box when the page is loaded. The onfocus value is empty, so when focus is placed in the text box, which is merely the act of the user clicking inside of it, it empties the textbox. Piece of cake, eh Rumplestiltskin? |
Almost a NewsletterChanging list hosts. Will post a new subscribe form shortly.Did you know...The member's site has about 100 standards compliant HTML and CSS tutorials, 31 handy reference charts, reprintable content, web graphics, exclusive fonts, free software, free ebooks and more? All this for less than 9 cents a day! [ Details ] |
Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects | Press Room
Sitemap | Member Perks | Member Login | About BoogieJack.com | Contact | Privacy Policy | Copyright Policy | Links
|