Ever wanted to know how when you go to a site the cursor is automatically “stuck” on a particular form element?  Its pretty simple actually, just add the following to your input tag:

onload="document.formname.inputname.focus()"

Pretty much how it reads, formname is the name of your form, input name is the name of the field on your form.

Spread the word:
  • Digg
  • Technorati
  • del.icio.us
  • YahooMyWeb
  • co.mments
  • Furl

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!