Element

body

Error Type

Potential

Guidelines

  • WCAG 2.0 (Level A)
    Guideline Group3.2 Predictable: Make Web pages appear and operate in predictable ways.
    Guideline SubgroupSuccess Criteria 3.2.1 On Focus (A)
  • WCAG 2.0 (Level AA)
    Guideline Group3.2 Predictable: Make Web pages appear and operate in predictable ways.
    Guideline SubgroupSuccess Criteria 3.2.1 On Focus (A)
  • WCAG 2.0 (Level AAA)
    Guideline Group3.2 Predictable: Make Web pages appear and operate in predictable ways.
    Guideline SubgroupSuccess Criteria 3.2.1 On Focus (A)

Requirement

Loading the web page does not cause a new window to open.

Error

Loading web page may cause new window to open.

Short Description

Pages do not disorient users by opening up one or more new windows as soon as a page is loaded.

How To Determine

Question Does loading this page cause a new window to open?
PASS Loading the page does not cause a new window to open.
FAIL Loading the page causes a new window to open.

Steps To Check

Procedure

1. Determine which technologies are required by the page.
2. Ensure all the technologies required by the page are present and turned on.
3. Load the web page and check if any new windows were opened.

Expected Result

1. Loading the web page does not cause a new window to open.

Failed Result

1. Modify the page so it does not open any new windows upon loading.

Examples

Pass Examples

Does not open a new page when loaded.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
<title>ATRC Testfile - Check #275.2 - Negative</title>
</head>
<body>
<p>This page does not cause a new window to open.</p>
</body>
</html>

Fail Examples

Opens a new page when loaded.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
<title>ATRC Testfile - Check #275.1 - Positive</title>
<script>
window.onload = showAdvertisement;
function showAdvertisement()
{
	window.open('275-2.html', '_blank', 'height=200,width=150');
}
</script>

</head>

<body>
<p>This page will open a new window upon loading as long as scripting is enabled.</p>
</body>
</html>
Web site engine's code is copyright © 2023
Inclusive Design Institute