Web Development
Web Developer Guidelines
Visual Design Recommendations

Checkpoint 1.8 - JavaScript

JavaScript does not change the focus to another browser window

WCAG 1.0 Priority 2

WCAG Guideline 10. Use interim solutions.

JavaScript contains a function to relocate the focus of the browser, via positioning the cursor, to other components.

This capability can be employed both within the same web page or by moving to another web page. Moving the focus to another window can be disorienting for all user as this move is unexpected, the user may not realize a different window is being presented, and the browser's Back button will not take the user back to the previous screen.

Requirement

JavaScript must not be used to change the focus to another web page.

Checking Tool

View the source code of the web page and locate any instances of the JavaScript focus() function.

  • Internet Explorer - AIS toolbar: Source > View Source
  • Firefox - Web Developer's Toolbar: View Source > View Source

Information Source

The original source of this information is located on the W3C web site  (www.w3.org/TR/WCAG10-TECHS/#tech-fallback-page)

 

Back to top