Explore the community Forums Lectora Lectora Questions & Answers Tab order does not match reading order Reply To: Tab order does not match reading order

#366470 Score: 0
Profile photo of Jason Dalrymple
Jason Dalrymple
wise owl
curious george
friend finder
picture perfect
54 pts

There is a workaround for elements you want to hide from the tab order using JavaScript. Credit where credit is due, as this workaround came from @klaatu.

On elements I need to hide from tab order, I use onShow -> RunJS:

document.getElementById(“%HTMLNAME%anc).tabindex = “-1”;

The key is knowing what suffix to add to the HTML Name. The above example is used to hide images that are decorative and do not need a description. The elements still get focus if clicked on, but for keyboard only users, this isn’t an issue.

Hope this helps!