WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Having an application element gain focus when the page loads?

for

From: Patrick H. Lauke
Date: Mar 12, 2018 10:24AM


On 12/03/2018 09:30, Brandon Keith Biggs wrote:
> Hello,
> I have a page with:
> <div role="application"></div>
>
> I'm trying to figure out how to properly have it gain focus when the page
> loads (for both sighted and blind users), and pass all keyboard input to an
> element.

Assuming the whole page is an application, why not add
role="application" directly to the <body> ? Or does the page also
contain other things that are outside of the application area, but you'd
want THAT to be accessed first?

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke