WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: programmatically setting focus on page load

for

From: Paul J. Adam
Date: Jul 1, 2015 4:39PM


Hey Jennison, if it's the login page or the home page and the main task for a user is to login to the site then that makes sense as the fastest way to get the user into their main goal.

I use the HTML5 autofocus attribute on my personal contact form so that puts your focus there automatically because I decided that's the main goal of that page. http://pauljadam.com/#/contact <http://pauljadam.com/#/contact>;

Autofocus is much better than using positive tabindex values which break the focus order most times.

So no I would not call it a WCAG Success Criterion failure.

Paul J. Adam
Accessibility Evangelist
www.deque.com

Join us at our Mobile Accessibility "Bootcamp!"
August 6-7 in Austin Texas
https://dequeuniversity.com/events/2015/mobile
Topics include responsive web design, native apps, & more

> On Jul 1, 2015, at 5:10 PM, Jennison Mark Asuncion < <EMAIL REMOVED> > wrote:
>
> Hi,
>
> If a page loads, and focus is programmatically set, say to go directly
> to a User Name field (i.e., a screen reader user would be unaware of
> any content above), does that make the page nonconformant with WCAG?
> My gut is saying it does, but I am unsure and need a sanity check and
> the guideline reference (if my gut is right).
>
>
>
> Jennison
> > > >