Input focus onload
Some web sites, such as big search engines, (Google, or Yahoo! for example) and other types of commercial sites often will feature a very prominent main search field. Possibly a search field on every page.
When this is the case, its a very good practice to make SURE the user always has their mouse cursor inside (or in focus) the main input field right from the get-go. No one wants to have to click inside a field every time they visit when its the main point of the site in the first place.
Here's an easy way to achieve this.
The problem with using the above code is that you'd have to put it into each and every single input element, for every page that you wish for it to have attain focus by default. And you probably already know where I'm going with this... it's unacceptable.
Read More... |
Comments (0) |
Jun 21, 2009
