diff --git a/techniques/client-side-script/SCR14.html b/techniques/client-side-script/SCR14.html index b01ef1a74b..6502fc2dd9 100644 --- a/techniques/client-side-script/SCR14.html +++ b/techniques/client-side-script/SCR14.html @@ -25,7 +25,7 @@

Examples

Updating screen reader settings for stock price update alerts

The script below will update a stock value in an aria-live component every 10 seconds. If the user presses the "Turn Announcements Off" button, their screen reader will stop making announcements when the stock value changes; if they press the "Turn Announcements On" button, the announcements will start again.

- +

The JavaScript

<script>
@@ -64,7 +64,8 @@ 

The JavaScript

}, 10000) }); </script>
- +
+

The HTML

<body>
@@ -81,8 +82,8 @@ 

The HTML

Turn Announcements Off</button> </div> </body>
- -

Working example of this code: Demonstration of toggling ARIA alerts.

+
+

Working example of this code: Demonstration of toggling ARIA alerts.

Tests