JAWS reader adds tabIndex from -1 to image anchors

I have three anchor tags, one with text inside and two with images with actual alt text. An anchor tag with text inside works fine with JAWS and reads correctly. However, for some reason, with anchors with the image inside, tabIndex -1 is applied, which means that they are skipped.

This is tested in IE 9. Is there a reason why this should happen? Is there any way to prevent this?

+5
source share
2 answers

JAWS automatically adds tabindex = "- 1" to bind tags that have href = "javascript: void (0)". I used href = "#" to solve the same problem as yours.

+3

JAWS, tabindex -1. IE9 JAWS 14.0

, JAWS โ€‹โ€‹ "/HTML/PDFs" โ†’ "", " ". JAWS :

, , , . , . .

, , /, :

<a href="javascript:void(0)" onclick="test();">
    <img src="untitled.png" title="Test" alt="Test">
</a>
<a href="javascript:void(0)" onclick="test();">TEST</a>

JAWS , :

<a tabindex="-1" href="javascript:void(0)" onclick="test();">
    <img src="untitled.png" title="Test" alt="Test">
</a>
<a href="javascript:void(0)" onclick="test();">TEST</a>

, , , . /.

, , , JAWS href , onclick onkeydown. , , , / , . :

<a href="javascript:void(0)" onclick="test();">
    <img src="untitled.png" title="Test" alt="Test">
</a>

<a href="javascript:void(0)" onclick="test();">TEST</a>

<a href='javascript:void(0)' onclick="dontTest();">
    <img src="untitled2.png" title="Test" alt="Test">
</a>

:

<a tabindex="-1" href="javascript:void(0)" onclick="test();">
    <img src="untitled.png" title="Test" alt="Test">
</a>

<a href="javascript:void(0)" onclick="test();">TEST</a>

<a tabindex="-1" href='javascript:void(0)' onclick="dontTest();">
    <img src="untitled2.png" title="Test" alt="Test">
</a>

: , href javascript:void(0), . href, .

, -.

+3

All Articles