Standing Aginst Auto-Focus Inputs

In the last few months I have read a number of articles from some major sites that appear to promote or advocate the use of an auto-focus input when a page loads as a "technique to improve your user interface". The technique usually relies on some form of onload event for the body tag to set the focus to a search field or a login field.
I will say right now this is not a good practice at all. Unless your creating a site (or page) where the first task a user should take is to search for something or login, this is a very bad thing to do. This technique is one that I would personally lump in an article more appropriately titled "10 things to kill your user interface designs"
Why the Auto-focus is a bad idea
Here are some of my top reasons why this approach belongs on the list of bad UI techniques. First the auto-focus takes a non traditional user (e.g. non-mouse, vision or cognitive disabilities.) out of the normal document flow. Users that tab to content on the page will find that they are not at the top of the page anymore. This can be confusing or disorientating to some users. Users of assistive technologies will suffer the most as they may not be able to tell where they are on the page at all. Some newer breads of CSS based designs put navigations and searches at the bottom of the document flow. This may present usability issues of it's own, but compounded with an auto-focused input and you may completely loose or disorientate a user.
Good UI design, and usability experts agree, that you should never break functionality of the browser just for your page. Placing focus on a form input breaks the standard UI expectations of users by removing the delete or backspace function allowing a user to go backwards in their history to the previous page.
Steps in the right direction
There has been efforts made to correct this by using smarter javascript's that detect when you have hit delete past the last character in the field and thereby returning you back in your history to the previous page. I commend these javascript developers taking steeps in the right direction but more work needs to be done. This approach may work for some users but not all. Case in point: Sometimes I may start typing a few characters into a field, Then realize I made a mistake and hit delete more times than there are characters typed. A script like this would return me to the previous page and not just delete the content I wanted from a field and stop. If I had already filled out a lengthy form this could go really wrong. Thats not likely to be the case, but it's still annoying all the same.
Your better off ditching a script like unless it really makes sense for your application. If your google then I can see it being useful. Googles homepage is very minimal with most people going to do one thing — Search. This makes sense for google. Yahoo on the other hand does not make as strong of a case to me as there are numerous tasks that a user can make from the yahoo homepage. Yahoo still auto-focuses their search field so it either makes sense to them or they just don't care about non-traditional surfers. Based on my mobile experience with yahoo, I would guess they really do not care unless your a traditional user. But that is just my two cents.
What are your thoughts? Agree? Disagree? Good and bad examples? You are all surfing veterans, so your feedback is most valuable. Feel free to let me have it.
Offsite Resources
Tags: Accessibility · usability
5 comments so far ↓
As far as the actual post goes, I only about 50% agree. I like that Yahoo! mail auto focuses on the login field, and I get annoyed if it doesn't load properly and I have to click in. Same thing with Facebook. However, I suppose those fit into the category you mentioned of "one thing" websites. I've never even noticed the auto focus on the Yahoo! homepage (which I visit often) because I'm always using a mouse to navigate.
You mentioned non-traditional and disabled users being affected by this Javascript technique. Aren't these these the same set of users most likely not to have Javascript enabled? I feel like the people most affected would be those using full-powered browsers but still browsing using keystrokes: a very small group of users. I may be wrong (and the previous comment is certainly valid), but I don't see many users even noticing.
User will click on search field anyway that's why they use autofocus.
Leave a Comment