E-mail List Archives
Re: keeping jaws focus on a link after page load
From: Tim Harshbarger
Date: Jun 19, 2018 6:58AM
- Next message: Robert Fentress: "Preferred mode for JAWS users?"
- Previous message: Mohith BP: "Accessibility of VersionOne software"
- Next message in Thread: Nick Allan: "Re: keeping jaws focus on a link after page load"
- Previous message in Thread: Nick Allan: "keeping jaws focus on a link after page load"
- View all messages in this Thread
I don't think there is anything you can do from the application/site side of things to avoid JAWS doing that short of setting a javascript timer when the page loads and having it set the focus back to the element.
Something like:
// Trigger the focus event 500 ms after the timer starts.
Window.setTimeout(() => {
Document.querySelector("[autofocus]");
}, 500);
I haven't tested that code so it might not work. Also, this code assumes the element that receives focus is using the autofocus element.
However, I'm not sure I would use the code in a page even if it works. You already probably know this, but this seems to me like an intentional screen reader feature. I'm always reluctant to do something that interferes with a screen readers intentional behaviours since it alters the behavior that the screen reader user likely expects.
Thanks,
Tim
-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Nick Allan
Sent: Sunday, June 17, 2018 10:32 PM
To: <EMAIL REMOVED>
Subject: [EXTERNAL] [WebAIM] keeping jaws focus on a link after page load
Hi all
I've got a situation where I have a link that causes a new browser window to open, on that window are 2 frames one showing search results. Keyboard focus automatically goes to the link for the first search result in the 2nd frame, but because it's a new page load, Jaws automatically starts reading, which then moves the focus off that first search result if you don't press the ctrl key quickly enough to stop jaws reading.
Other than modifying the jaws configuration to not automatically start reading on page load. Does anyone have any suggestions on what could be done here to stop jaws automatically reading and moving the focus?
Nick
Nick Allan
Access Technology Technical Lead
Business Transformation
Vision Australia
454 Glenferrie Rd Kooyong VIC 3144
M: +614 2957 4051 T: +613 9864 9293 (I: 341293)
E: <EMAIL REMOVED>
www.visionaustralia.org
[Vision Australia. Blindness. Low Vision. Opportunity. - logo]
[Vision Australia. Winner of the Australian HR Award for Best Workplace Diversity and Inclusion Program. - logo]
The history, culture, diversity and value of all Aboriginal and Torres Strait Islander peoples are recognised, acknowledged and respected.
- Next message: Robert Fentress: "Preferred mode for JAWS users?"
- Previous message: Mohith BP: "Accessibility of VersionOne software"
- Next message in Thread: Nick Allan: "Re: keeping jaws focus on a link after page load"
- Previous message in Thread: Nick Allan: "keeping jaws focus on a link after page load"
- View all messages in this Thread