Thursday, December 02, 2004

Annoying Website Feature

Here's something that annoys me, and I run into it using Blogger.com of all places:

Some sites take a while (meaning >1 second) to load, but the browser renders the page and its form elements while it's still loading. Then, there's a "onload" event handler for the body tag that sets the focus to a particular control.

That in itself is not the annoying part, but my bank and blogger.com both do this on the login screen.

So, what happens is that I type my username, hit Tab, and then start typing my password. Well, in the middle of the password, that "onload" handler fires off, moving the cursor back to the username box, and it usually ends up with the latter half of my password being typed in clear text within that username box.