3.2.2 On Input
Level A Since WCAG 2.0 How it is checked: Robot
In plain language
Choosing an item in a list, ticking a checkbox… must not automatically change the page or submit without warning.
Who is affected
- People with motor disabilities using only a keyboard
- Blind people using screen readers
- People with cognitive disabilities
Examples
Fails
<select onchange="location=this.value"> picking a language jumps to another page immediatelyPasses
A "Go" button next to the list; or a clear note beforehand: "Choosing an option opens a new page".
How to fix
- Add a confirm button after the selection.
- If it must be automatic, say so in text right next to it.
How to test it yourself
- Use the arrow keys to change the selection in each list: does the page jump on its own?
What WCAG.win checks
WCAG.win checks part of this criterion automatically. The rest still needs a person.
- Robot: Changes the value of select boxes (outside submitted forms) and reports those that make the page navigate or open a new window.
W3C documentation: Understanding Success Criterion 3.2.2: On Input