WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Tabindex and initial focus

for

From: Jonathan Avila
Date: Feb 1, 2018 11:25AM


> While far from pretty, you could use JS to reset the focus. In the off chance that you are using jQuery: $(this).removeAttr('tabindex');

I would tighten that up to only remove positive indices as tabindex of 0 or -1 may be used for other good reasons. Furthermore, a safer approach might be to change all the positive tabindex values to 0s in case there were elements that needed to be added to the tab order.

Jonathan

Jonathan Avila
Chief Accessibility Officer
Level Access, inc. (formerly SSB BART Group, inc.)
<EMAIL REMOVED>
703.637.8957 (Office)
Visit us online: Website | Twitter | Facebook | LinkedIn | Blog
Looking to boost your accessibility knowledge? Check out our free webinars!

The information contained in this transmission may be attorney privileged and/or confidential information intended for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is strictly prohibited.