WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Tabindexing question


From: Patrick H. Lauke
Date: Jan 20, 2012 12:21PM

On 20/01/2012 18:57, Jared Smith wrote:
> or you could use JavaScript focus() to
> set focus to the element you want when the page loads.

or use the new-ish HTML5 autofocus attribute (with a JS fallback if it's
not supported), if you really want to be fancy. But yes, fundamentally,
it seems that your requirements are contradictory...you have tabindex,
but you want other things before it to be focused first? It still sounds
to me like you don't actually want to do anything special and rely on
standard tab order?

Patrick H. Lauke