OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Popup Blocked Simulated Click on Anchor</title> | 4 <title>Popup Blocked Simulated Click on Anchor</title> |
5 <script> | 5 <script> |
6 console.log("navigate"); | 6 console.log("navigate"); |
7 function test() { | 7 function test() { |
8 document.querySelector("a").focus(); | 8 document.querySelector("a").focus(); |
9 } | 9 } |
10 </script> | 10 </script> |
11 </head> | 11 </head> |
12 <body onload="test()"> | 12 <body onload="test()"> |
13 If the click is simulated by the Ctrl+Enter/Cmd+Enter Keys then there will be an
pass message displayed in a new tab on the background. Otherwise, the test fail
s. | 13 If the click is simulated by the Ctrl+Enter/Cmd+Enter Keys then there will be an
pass message displayed in a new tab on the background. Otherwise, the test fail
s. |
14 <a href="data:text/html,<title>PASS</title>you should see this message when pres
sing the Ctrl+Enter/Cmd+Enter Keys"></a> | 14 <a href="popup-success.html">link</a> |
15 </body> | 15 </body> |
16 </html> | 16 </html> |
OLD | NEW |