Shane's blog

Personal blog of Shane Preece. Occaisional politics and tech minddump.

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About Shane
    • About Shamess (Archived 20071013)
    • About Shamess (Archived 20080719)

Tag Archives: login

Please gawd, use tabindex.

Posted on September 24, 2009 by Shane

Web app developers, you all do good work but you consistently keep forgetting one very simple thing that makes me life so much more easier! Damn login forms! Especially if you’re writing your login form on the fly onclick or something. Here’s how I like to log into a website.

  1. Start in username field. Type it in. Hit tab.
  2. Should now be in the password field. Hit tab.
  3. Listen up! This should be the “keep logged in” check box! Hitting tab again…
  4. Should take me to the submit button for me to press enter at.

You all keep forgetting step three! Every other website does it, why can’t you, twitter? (And many other random sites.)

It’s pretty simple. There’s an (x)HTML attribute for input fields, a links, textareas, and buttons. ie. tabindex=”1″ would put the cursor in the element when the tab button is first hit. There’s a better explanation here: how to control tab order in html.

Posted in Programming | Tagged design, html, login, xhtml
Proudly powered by WordPress