Success Criteria 3.2.5 Change on Request: [Level AAA]
The intent here is to give the user complete control over any changes of context. There should be no automatic submissions and launching of windows by selecting an item from a dropdown list or similar.
Techniques
Providing a mechanism to request an update
This allows the user to control if and when content is updated. Automatic updating, for instance a news feed, can be confusing and disorient users. A mechanism should be provided by which the update can be requested by the user.
page redirection
The preference for this is to always do it server side but this not always possible so in those cases the meta tag can be used to perform a refresh.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Rugby World Cup 2015</title>
<meta http-equiv="refresh" content="0;URL='http://www.rwc2015.co.uk/'" />
</head>
<body>
<p>This page has moved to a <a href="http://www.rwc2015.co.uk/">http://wwww.rwc2015.co.uk</a>.</p>
</body>
</html>
The first value of the content attribute should always be "0". This sets the time out period to zero so that the redirect page is not displayed at all. As a back up though, any text on the page should be relevant to the redirection.
Eliminating Pop-up windows
Rather than opening a pop-up window, a page should be opened in another window/tab. This can be done using the much maligned target attribute which has wormed its way back in to favour with the W3C and is now valid in HTML5. There should be text present which explains to the user that the link will open a new window.
Using progressive enhancement to open new windows
This is about using a script to open a new window but without preventing it opening in the current window if JavaScript is not available.
Disable/Enable JavaScript in your browser to see the different text and how the the test page opens. (Note that users of Firefox 23+ cannot disable script anymore, Mozilla have deemed it to be an essential of everyday browsing and removed the option to disable it. Other Firefox tools are available to perform this task though)
Using script events to change controls without change of context
This technique is shown in Success Criterion 3.2.2.
Failures
Un-solicited opening of new windows
One example of this might be when a user is completing a form and if a field is incorrectly filled in a window opens with instructions of how to enter the field correctly.
Other failures include a new window opening in the following scenarios
- Clicking on the body of a page
- Clicking a link which is undecorated and does not appear to be a link
- Clicking a link that doesn't state that a new window will be opened
No mechanism to prevent automatic updates
This is where page content is automatically updated and there is no mechanism to prevent it. A slightly exaggerated example here but it proves the point.
Changing context when the user removes focus from a form element
A form is being filled in and when the last field is completed and loses focus the form is submitted automatically without any user agreement.
using meta refresh with a time-out
In the following example the time-out period is set to 30 seconds. This could be very dis-orienting for users to having this re-direction page displayed for a few seconds before navigating to the page that you really want.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Rugby World Cup 2015</title>
<meta http-equiv="refresh" content="30;URL='http://www.rwc2015.co.uk/'" />
</head>
<body>
<p>You will taken to the requested page in 30 seconds. Click <a href="http://www.rwc2015.co.uk/">here</a> if you're impatient.</p>
</body>
</html>