How do you force a screen reader to automatically read updated text on a web page?
By Daniil Gusev, 31 March, 2021
Forum
App Development and Programming
Greetings. There is a Russian-language multiplayer dungeon game with a web client. A question to the programmer: how is it possible to make the screen reader read them automatically when new lines arrive in the client? What do I need to do?
You can accomplish this by using ARIA Live Regions. The user's screenreader can be notified of these changes. See here: https://webaim.org/techniques/aria/
You can set these updates to update in several modes including rude, assertive and polite. These will determine when how the region is spoken if there are other elements being read aloud on the page.
Comments
ARIA Live Regions
You can accomplish this by using ARIA Live Regions. The user's screenreader can be notified of these changes. See here:
https://webaim.org/techniques/aria/
You can set these updates to update in several modes including rude, assertive and polite. These will determine when how the region is spoken if there are other elements being read aloud on the page.
command r refresh/reload
Don't know if this helps, but command r reloads the screen and gives the updated everything.