Topic “JavaScript”

HCI Niceties

One huge peeve of mine is the addition of JavaScript that uses the body onload event to trigger a focus() call to put the cursor into the login field.

I know it’s well intentioned, and probably works fine for all those fortunate enough to have broadband access.

If you’re stuck with dial-up, however, you often find yourself filling out a login form while you wait for the rest of the page to load. I can tell you from repeated experience that it is DAMN annoying to be halfway through entering your password, only to have your cursor picked up and dropped back in the username field.

Why not spruce up that ‘onload’ call to first check and see whether the the username field is empty? If yes, by all means focus on it. If no, assume somebody’s already filled it in.

Syndicate content
Syndicate content

Twitter

  • I don't think it gets much better than 'Revolver' on vinyl. 2 years 50 weeks ago
  • Have fun at #drupalcon everybody! I hate to break my 3 year streak, but I should be back next year... 3 years 19 weeks ago
  • Just made my first Drupal 7 module, 'Entity Relationships', official: http://bit.ly/h3xnPK #drupal #entities #module 3 years 20 weeks ago
  • Already set up my first #git sandbox project for #drupal: http://drupal.org/sandbox/usonian/1072422 3 years 21 weeks ago
  • Drupal.org is coming back online - just set up my SSH keys for #git. Huge props to the #drupal git migration team! 3 years 21 weeks ago

Older

Contact

Andy Chase
(978) 297-6402
andychase [at] gmail.com
GPG/PGP Public Key