View Single Post
Old 09-24-2007, 04:51 PM   #1
chaosprime
Member
 
Join Date: Jul 2007
Home MUD: Lost Souls
Posts: 199
chaosprime will become famous soon enough
Lightbulb Web Form Autofocus JavaScript

In hopes of encouraging more webmasters to give their users input forms that automatically set input focus to a reasonable place, rather than requiring them to click on a box first, I have just released my on the . This is a reliable, cross-browser script that generally ought to be fire-and-forget; drop the .js file into your web site and add the line to invoke it to a relevant page, and it should always do something at least reasonable, and most often exactly what you'd want. With any luck, publishing this code can help wipe out "oh, you have to CLICK on the username box first" forms.
chaosprime is offline   Reply With Quote