<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Popup Blocked Simulated Click on Anchor</title> | |
<script> | |
console.log("navigate"); | |
function test() { | |
document.querySelector("a").focus(); | |
} | |
</script> | |
</head> | |
<body onload="test()"> | |
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 fails. | |
<a href="popup-success.html">link</a> | |
</body> | |
</html> |