Please use .focus() in your web pages

| | Comments (0) | TrackBacks (0)
One of the most annoying usability bugs on the web is the simple lack of .focus() calls. If the page has a search bar, or sign-in form, or really any other form field on it where the primary task is for the user to type text into it, then it just makes common sense to place focus in that field when the page loads.

It's very simple too. Here's the call to use:
<body onLoad="document.GetElementByID('text_field_ID').focus();">

Yes, I'm talking to you, BankDirect.

0 TrackBacks

Listed below are links to blogs that reference this entry: Please use .focus() in your web pages.

TrackBack URL for this entry: http://www.kpao.org/blog/cgi-bin/mt/mt-tb.cgi/174

Leave a comment