Legal Real estate Insurance Website Hosting Travel Agents Internet & Phone Casino Sports Book Templates Expat Food Items Domain Names
Submit Engine Send e-Cards Shopping Mall Travel Guide Missing Persons Free Web Based E-mail Search The Web Webmaster Tools Dating Service Blog read now Play Flash Games
Free E-books Free Legal Forms Reference Programs Scripts Affilliate Videos Free Adsense Templates Erotic phone Java games
Send SMS to USA FAQ's & Advice Expat Profile Consumer Protection Testimonials Pattaya's WeatherThai Food Recipes Free Articles Free Magazines
Pattaya City Thailand, legal, real-estate and discount international telephone services

Webmaster Tips, Tricks & Utilities    JavaScripts & CSS Styling

      JavaScript Set focus

Ever wondered how they get the cursor to automatically flash in the first input field of a form?


Well here is one method that will work for you. Take the contents of the text area and add it to the <head> area of your webpage. Then replace your <body> tag with the complete <body> tag below. That's it. The form that is shown below is an example that you can use to test the effectiveness of this little script.



<body onload="setfocus()">

<form>
<input type="text" name="field" size="30">
<input type="text" name="field1" size="30">
<input type="text" name="field2" size="30">
<input type="text" name="field3" size="30">
<input type="text" name="field4" size="30">
</form>

Pattaya City Thailand, legal, real-estate and discount international telephone services

Webmaster Tips, Tricks & Utilities  JavaScripts & CSS Styling



Google