Forum Moderators: open

Message Too Old, No Replies

field focus onLoad

good idea or bad idea?

         

Purple Martin

5:31 am on Sep 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's easy to use JavaScript to automatically put the cursor in a form field when a page loads (just like happens in Google).

From an accessibility point of view, is this a good idea or a bad idea?

dcrombie

9:04 am on Sep 16, 2004 (gmt 0)



It makes a lot of sense sites like 'google' and 'picsearch' which do it. I guess the thinking is that when you go there your intention is to do a search and not navigate away.

For a less prominent, or more cluttered, site I suggest setting 'tabindex="1"' for the field and 2, 3, 4 for the rest of the form in question.