WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Tabindex and initial focus

for

From: Swift, Daniel P.
Date: Feb 1, 2018 11:22AM


While far from pretty, you could use JS to reset the focus. In the off chance that you are using jQuery:

$(document).ready(function() {
$('input').each(function(){
$(this).removeAttr('tabindex');
});
});

Dan Swift
Senior Web Specialist
Enterprise Services
West Chester University
610.738.0589

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Joseph Sherman
Sent: Thursday, February 01, 2018 1:08 PM
To: 'WebAIM Discussion List' < <EMAIL REMOVED> >
Subject: [WebAIM] Tabindex and initial focus

Our PeopleSoft application uses positive tabindex on every interactive item in forms. No, we cannot change this. Yes, it's very annoying. Assuming focus is in the correct order, the problem is that initial focus for screen readers starts on the first tabindex on the page, skipping any directions or instructional material at the top of a page.

Is this an inherent property of positive tabindexes, that they steal initial page focus, or is this something we can change?


Joseph