To avoid reading text from the screen

I want to ignore the text inside the button when reading the jaws, my code is:

<span style="display:none;" id="text1">Hai</span> <button aria-labelledby="text1"><span>firstbutton</span></button> 

But the Jaws read like the first Hai button

Thanks in advance

+4
source share
1 answer

This markup is announced on the Hai button in Voiceover OSX 10.8.4, ChromeVox 1.29.1, and JAWS 14.

 <button aria-label='Hai'> <span aria-hidden='true'>firstbutton</span> </button>` 
+2
source

Source: https://habr.com/ru/post/1496792/


All Articles