WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Having an application element gain focus when the pageloads?

for

From: JP Jamous
Date: Mar 12, 2018 3:40AM


Brandon,

Try this.

<div id="application-region" role="application" tabindex="0"></div>

Use a link to point to the id of the div or you can use a js function to place focus on it. Since it has a tabindex it should obtain the focus and the role should make the screen reader state Application Region.