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
- 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