Level 1
10.1 Until user agents allow users to turn off spawned windows, do not cause pop-ups or other windows to appear and do not change the current window without informing the user.
Priority 2
10.1 Until user agents allow users to turn off spawned windows, do not cause pop-ups or other windows to appear and do not change the current window without informing the user.
Priority 2
10.1 Until user agents allow users to turn off spawned windows, do not cause pop-ups or other windows to appear and do not change the current window without informing the user.
3.2 Predictable: Make Web pages appear and operate in predictable ways.
Success Criteria 3.2.5 Change on Request (AAA)
a (anchor) element must not contain a target attribute unless the target attribute value is either _self, _top, or _parent.
| Question | Does this anchor open a new window without warning? |
|---|---|
| PASS | There is a warning to user that anchor opens a new window. |
| FAIL | User is not given warning that anchor opens a new window. |
a (anchor) element that contains a target attribute.a (anchor) elements that contain a target attribute value of _self, _top, or _parent.a (anchor) element opens a new window.a (anchor) elements opens a new window.a (anchor) element opens a new window.a (anchor) element has target of "_self".
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> <html lang="en"> <head> <title>OAC Testfile - Check #18 - Negative</title> </head> <body> <a href="newwindow.html" target="_self">same window</a> </body> </html>
a (anchor) element has target of "_new".
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> <html lang="en"> <head> <title>OAC Testfile - Check #18 - Positive</title> </head> <body> <a href="newwindow.html" target="_new">new window</a> </body> </html>