Skip to main content
RAWEBA

7.4 For each script that initiates a change of context, is the user warned or does the user have control?

WCAG references
  • 3.2.1 On Focus (A)
  • 3.2.2 On Input (A)
Techniques
  • F9
  • F22
  • F36
  • F37
  • F41
  • G13
  • G76
  • G80
  • G107
  • H32
  • H84
  • SCR19

Official methodology to test criterion 7.4

Test 1 (7.4.1)

  1. Find all the JavaScript events in the document which initiate a change of context, for example
    • dynamic updating of form fields;
    • the opening of a new page when an option in a combobox is activated (<select> element);
    • AJAX updating of an essential part of the page;
    • automatic launch of a video player when a playlist is selected;
    • focus manipulation to change the user's current position on the page.
  2. Check that
    • the user is warned by a message about the script action and the type of change before it is triggered;
    • or the change of context is initiated by an explicit button (input of the submit, button or image type or the button tag);
    • or the change of context is initiated by an explicit link.
  3. If this is the case, the test is validated.