Link with onclick
but no href
Screen reader compatibility
HTML WCAG
Sep 11, 2022
Expected Result: causes problems in some screen readers
Actual Result: causes problems in 67 screen reader / browser combinations
For expected failures, the results show which AT combos the failures affect. Results are recorded from the user's viewpoint, so describe the user impact of authoring errors.
WCAG Failure: F42
Code used for this test:
<a onclick='alert('hello');'>Hello</a>
Change History
Last updated: September 11, 2022
- NVDA with Chrome Causes problems in NVDA 2022.2
- NVDA with IE Causes problems in NVDA 2019.2
- NVDA with FF Causes problems in NVDA 2022.2
- JAWS with Chrome Causes problems in JAWS 2022.2207.25
- JAWS with IE Causes problems in JAWS 2019.1912.1
- JAWS with FF Causes problems in JAWS 2022.2207.25
- VoiceOver macOS Causes problems in VoiceOver macOS 12.5
- VoiceOver iOS Causes problems from VoiceOver iOS 8.4 to VoiceOver iOS 15.6
- WindowEyes with IE Causes problems in WindowEyes 9.2
- Dolphin with IE Causes problems in Dolphin SR 15.05
- SaToGo with IE OK in SaToGo 3.4.96.0
Screen reader | Browser | Mode | Notes | What the user hears |
---|---|---|---|---|
NVDA 2022.2 | Chrome 105 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2022.2 | Chrome 105 | Tabbing | Skipped when tabbing | |
NVDA 2022.2 | FF102 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2022.2 | FF102 | Tabbing | Skipped when tabbing | |
NVDA 2022.2 | Edge 105 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2022.2 | Edge 105 | Tabbing | Skipped when tabbing | |
NVDA 2021.2 | Chrome 94 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2021.2 | Chrome 94 | Tabbing | Skipped when tabbing | |
NVDA 2021.2 | FF91 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2021.2 | FF91 | Tabbing | Skipped when tabbing | |
NVDA 2021.2 | Edge 94 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2021.2 | Edge 94 | Tabbing | Skipped when tabbing | |
NVDA 2020.2 | Chrome 86 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2020.2 | Chrome 86 | Tabbing | Skipped when tabbing | |
NVDA 2020.2 | FF78 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2020.2 | FF78 | Tabbing | Skipped when tabbing | |
NVDA 2020.2 | Edge 92 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2020.2 | Edge 92 | Tabbing | Skipped when tabbing | |
NVDA 2019.2 | Chrome 79 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2019.2 | Chrome 79 | Tabbing | Skipped when tabbing | |
NVDA 2019.2 | FF68 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2019.2 | FF68 | Tabbing | Skipped when tabbing | |
NVDA 2019.2 | IE11 | Reading | Link can be activated in reading mode | Clickable, hello |
NVDA 2019.2 | IE11 | Tabbing | Skipped when tabbing | |
NVDA 2018.4 | Chrome 73 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2018.4 | Chrome 73 | Tabbing | Skipped when tabbing | |
NVDA 2018.4 | FF60 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2018.4 | FF60 | Tabbing | Skipped when tabbing | |
NVDA 2018.4 | IE11 | Reading | Link can be activated in reading mode | Clickable, hello |
NVDA 2018.4 | IE11 | Tabbing | Skipped when tabbing | |
NVDA 2017.3 | FF60 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2017.3 | FF60 | Tabbing | Skipped when tabbing | |
NVDA 2017.3 | IE11 | Reading | Link can be activated in reading mode | Clickable, hello |
NVDA 2017.3 | IE11 | Tabbing | Skipped when tabbing | |
NVDA 2016.2 | FF48 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2016.2 | FF48 | Tabbing | Skipped when tabbing | |
NVDA 2016.2 | IE11 | Reading | Link can be activated in reading mode | Clickable, hello |
NVDA 2016.2 | IE11 | Tabbing | Skipped when tabbing | |
NVDA 2015.2 | FF41 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2015.2 | FF41 | Tabbing | Skipped when tabbing | |
NVDA 2015.2 | IE11 | Reading | Link can be activated in reading mode | Clickable, hello |
NVDA 2015.2 | IE11 | Tabbing | Skipped when tabbing | |
NVDA 2014.1 | FF29 | Reading | Link can be activated in reading mode | Link, hello |
NVDA 2014.1 | FF29 | Tabbing | Skipped when tabbing | |
NVDA 2014.1 | IE11 | Reading | Link can be activated in reading mode | Clickable, hello |
NVDA 2014.1 | IE11 | Tabbing | Skipped when tabbing | |
JAWS 2022.2207.25 | Chrome 105 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2022.2207.25 | Chrome 105 | Tabbing | Skipped when tabbing | |
JAWS 2022.2207.25 | FF102 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2022.2207.25 | FF102 | Tabbing | Skipped when tabbing | |
JAWS 2022.2207.25 | Edge 105 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2022.2207.25 | Edge 105 | Tabbing | Skipped when tabbing | |
JAWS 2021.2107.12 | Chrome 94 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2021.2107.12 | Chrome 94 | Tabbing | Skipped when tabbing | |
JAWS 2021.2107.12 | FF91 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2021.2107.12 | FF91 | Tabbing | Skipped when tabbing | |
JAWS 2021.2107.12 | Edge 94 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2021.2107.12 | Edge 94 | Tabbing | Skipped when tabbing | |
JAWS 2020.2008.24 | Chrome 86 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2020.2008.24 | Chrome 86 | Tabbing | Skipped when tabbing | |
JAWS 2020.2008.24 | FF78 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2020.2008.24 | FF78 | Tabbing | Skipped when tabbing | |
JAWS 2020.2008.24 | Edge 92 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2020.2008.24 | Edge 92 | Tabbing | Skipped when tabbing | |
JAWS 2019.1912.1 | Chrome 79 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2019.1912.1 | Chrome 79 | Tabbing | Skipped when tabbing | |
JAWS 2019.1912.1 | FF68 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2019.1912.1 | FF68 | Tabbing | Skipped when tabbing | |
JAWS 2019.1912.1 | IE11 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2019.1912.1 | IE11 | Tabbing | Skipped when tabbing | |
JAWS 2018.1811.2 | Chrome 73 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2018.1811.2 | Chrome 73 | Tabbing | Skipped when tabbing | |
JAWS 2018.1811.2 | FF60 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2018.1811.2 | FF60 | Tabbing | Skipped when tabbing | |
JAWS 2018.1811.2 | IE11 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 2018.1811.2 | IE11 | Tabbing | Skipped when tabbing | |
JAWS 18.0.5038 | FF52 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 18.0.5038 | FF52 | Tabbing | Skipped when tabbing | |
JAWS 18.0.5038 | IE11 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 18.0.5038 | IE11 | Tabbing | Skipped when tabbing | |
JAWS 17.0.2619 | FF48 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 17.0.2619 | FF48 | Tabbing | Skipped when tabbing | |
JAWS 17.0.2619 | IE11 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 17.0.2619 | IE11 | Tabbing | Skipped when tabbing | |
JAWS 16.0.4350 | FF41 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 16.0.4350 | FF41 | Tabbing | Skipped when tabbing | |
JAWS 16.0.4350 | IE11 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 16.0.4350 | IE11 | Tabbing | Skipped when tabbing | |
JAWS 15.0.9023 | FF29 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 15.0.9023 | FF29 | Tabbing | Skipped when tabbing | |
JAWS 15.0.9023 | IE11 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 15.0.9023 | IE11 | Tabbing | Skipped when tabbing | |
JAWS 14.0.9002 | FF29 | Reading | Link can be activated in reading mode | Link hello |
JAWS 14.0.9002 | FF29 | Tabbing | Skipped when tabbing | |
JAWS 14.0.9002 | IE11 | Reading | Link can be activated in reading mode | Link, hello |
JAWS 14.0.9002 | IE11 | Tabbing | Skipped when tabbing | |
WindowEyes 9.2 | IE11 | Reading | Hello, clickable | |
WindowEyes 9.2 | IE11 | Tabbing | Skipped when tabbing | |
WindowEyes 8.4 | IE11 | Reading | Hello, on click | |
WindowEyes 8.4 | IE11 | Tabbing | Skipped when tabbing | |
VoiceOver macOS 12.5 | Safari 15.6 | Reading | Hello, clickable | |
VoiceOver macOS 12.5 | Safari 15.6 | Tabbing | Skipped when tabbing | |
VoiceOver macOS 11.5 | Safari 15.0 | Reading | Hello, clickable | |
VoiceOver macOS 11.5 | Safari 15.0 | Tabbing | Skipped when tabbing | |
VoiceOver macOS 10.15 | Safari 14.1 | Reading | Hello, clickable | |
VoiceOver macOS 10.15 | Safari 14.1 | Tabbing | Skipped when tabbing | |
VoiceOver macOS 10.14 | Safari 13.0 | Reading | Hello, clickable | |
VoiceOver macOS 10.14 | Safari 13.0 | Tabbing | Skipped when tabbing | |
VoiceOver macOS 10.13 | Safari 12.1 | Reading | Hello, clickable | |
VoiceOver macOS 10.13 | Safari 12.1 | Tabbing | Skipped when tabbing | |
VoiceOver macOS 10.12 | Safari 10.1.2 | Reading | Hello, clickable | |
VoiceOver macOS 10.12 | Safari 10.1.2 | Tabbing | Skipped when tabbing | |
VoiceOver macOS 10.11 | Safari 9.1.2 | Reading | Hello, clickable | |
VoiceOver macOS 10.11 | Safari 9.1.2 | Tabbing | Skipped when tabbing | |
VoiceOver macOS 10.10 | Safari 9.0.1 | Reading | Hello, clickable | |
VoiceOver macOS 10.10 | Safari 9.0.1 | Tabbing | Skipped when tabbing | |
VoiceOver iOS 15.6 | Safari iOS 15.6 | Touch | No indication that text is a clickable link. | Hello |
VoiceOver iOS 14.7 | Safari iOS 14.7 | Touch | No indication that text is a clickable link. | Hello |
VoiceOver iOS 13.3 | Safari iOS 13.3 | Touch | No indication that text is a clickable link. | Hello |
VoiceOver iOS 12.4 | Safari iOS 12.4 | Touch | No indication that text is a clickable link. | Hello |
VoiceOver iOS 11.4 | Safari iOS 11.4 | Touch | No indication that text is a clickable link. | Hello |
VoiceOver iOS 10.3 | Safari iOS 10.3 | Touch | No indication that text is a clickable link. | Hello |
VoiceOver iOS 9.1 | Safari iOS 9.1 | Touch | No indication that text is a clickable link. | Hello |
VoiceOver iOS 8.4 | Safari iOS 8.4 | Touch | No indication that text is a clickable link. | Hello |
Dolphin SR 15.05 | IE11 | Reading | Normal, hello, has onclick | |
Dolphin SR 15.05 | IE11 | Tabbing | Skipped when tabbing | |
SaToGo 3.4.96.0 | IE11 | Reading | Link can be activated in reading mode | Link, hello |
SaToGo 3.4.96.0 | IE11 | Tabbing | Hello, link |
SortSite rules: AccWcag2-F42-1
Test notes
All tests were carried out with screen reader factory settings. JAWS in particular has a wide variety of settings controlling exactly what gets spoken.
Screen readers allow users to interact in different modes, and can produce very different results in each mode. The modes used in these tests are:
- Reading Content read using the “read next” command in a screen reader
- Tabbing Content read using the “tab” key in a screen reader
- Heading Content read using the “next heading” key in a screen reader
- Touch Content read when touching an area of screen on a mobile device
In the “What the user hears” column:
- Commas represent short pauses in screen reader voicing
- Full Stops represent places where voicing stops, and the “read next” or “tab” or “next heading” command is pressed again
- Ellipsis … represent a long pause in voicing
- (Brackets) represent voicing that requires a keystroke to hear