| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 | |
| 3 <head><title>This is a simple test page</title> | |
| 4 <script> | |
| 5 function simulateClick(target) { | |
| 6 var evt = document.createEvent("MouseEvents"); | |
| 7 evt.initMouseEvent("click", true, true, window, | |
| 8 0, 0, 0, 0, 0, false, false, | |
| 9 false, false, 0, null); | |
| 10 | |
| 11 return target.dispatchEvent(evt); | |
| 12 } | |
| 13 | |
| 14 function navigateInNewTab() { | |
| 15 return simulateClick(document.getElementById("bad_link")); | |
| 16 } | |
| 17 | |
| 18 </script> | |
| 19 </head> | |
| 20 | |
| 21 <a href="https://127.0.0.1:9666/files/ssl/google.html" id="bad_link" target="_bl
ank">This is a bad link</a> | |
| 22 | |
| 23 </html> | |
| 24 | |
| OLD | NEW |