WCAG 3.2.1 On Focus: explained simply
When a control receives focus, that must not initiate a change of context. So it must not, for example, open a new window, submit a form or make focus jump to another element. Changes of content that are not changes of context are allowed.
Last reviewed: Sources
How does your website stand?
The free check shows what can be measured automatically, with the location. No account.
Check website for freeWhat does the criterion require?
Anyone tabbing through a page briefly lands on every control, including the ones they do not want to use. Landing on a control, or giving it focus, must not initiate a change of context. An element receives focus by keyboard or by mouse, for example when you click in a text field. Merely moving the mouse over a control does not move focus unless a script makes it do so.
A change of context, as the standard defines it, is a major change that can disorient people if it happens without their knowledge and they cannot view the entire page at once. It includes changes of
- the user agent, meaning the program that presents the page,
- the viewport, for instance a new window,
- focus,
- content that changes the meaning of the page.
Going to a new page, anything that looks to users as if they had moved to a new page, and significantly rearranging the content are part of this too. Not every change of content is a change of context. An expanding outline, a dynamic menu or a tab control does not necessarily change the context, as long as none of the above changes with it.
The criterion helps people with visual disabilities, cognitive limitations and motor impairments by reducing the chance that the context changes unexpectedly.
How does it differ from 3.2.2?
This criterion is only about an element receiving focus. What happens when someone changes its setting, by typing, ticking or choosing something, is covered by 3.2.2 On Input. There a change of context is allowed if users have been told about it beforehand; 3.2.1 has no such exception.
Activating an element, such as clicking a link or pressing Enter on a button, may change the context. With some controls a click does both: it gives them focus and activates them. The sufficient technique the W3C names is to tie changes of context to activation and not to focus (G107).
Common failures
- Focus is taken away again at once. A script removes focus from the element the moment it receives it, sometimes because somebody dislikes the focus ring. The element can then only be operated with a pointing device (F55).
- A dialog opens on arrival. The Understanding document describes a field that opens a help dialog when it receives focus. Keyboard users who want to tab past it end up in the dialog every time.
- A new window on focus. As soon as the "Print view" link receives focus, a new window opens although nobody activated the link.
- Unintended submission. A form is submitted as soon as focus reaches "Done".
- Skipping ahead. A field passes focus on to another control by itself as soon as it receives it.
The last three correspond to the examples of context changes on focus given in the Understanding document.
Checked automatically and checked by you
What the automated check detects
Coverage: selective
The automated check covers individual aspects of this criterion.
Page changes, new windows and submitted forms on focus are detected. Other changes of context cannot be recognised as such by machine.
Rules
-
Context change on focus alone
own.focus-context-change
What you check yourself
You answer this question in the manual checks of your scan.
Does everything stay in place when an element merely receives focus?
- Move through the page element by element with the Tab key without triggering anything, and watch the page after every step.
- It is a defect if merely focusing an element loads a new page, opens a new window, submits a form, makes focus jump somewhere else by itself or fundamentally rearranges the page. The automatic check itself finds page changes, new windows and submitted forms; look mainly for focus jumps and rearrangements.
- It is not a defect if a menu, tooltip or section opens on focus, as long as focus stays where it is.
Classification
- Level
- A
- Introduced in
- WCAG 2.0
- W3C explanation
- Understanding 3.2.1
Sources
- WCAG 2.2, W3C Recommendation
- Understanding 3.2.1
- W3C Techniques, F55: Failure of Success Criteria 2.1.1, 2.4.7, 2.4.13, and 3.2.1 due to using script to remove focus when focus is received, retrieved on December 4, 2026
- W3C Techniques, G107: Using "activate" rather than "focus" as a trigger for changes of context, retrieved on December 4, 2026