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. |
<?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>
<?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>