blob: ddc934393d6543081b19618061d328b027487fca [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Popup Blocked Fake Click on Anchor</title>
<script>
function test() {
document.querySelector("a").dispatchEvent(new MouseEvent("click", {shiftKey: true}));
}
</script>
</head>
<body onload="test()">
If the fake click was not blocked then there will be an warning message displayed in a new tab. Otherwise, the test passes.
<a href="data:text/html,<title>PASS</title>you should not see this message if popup blocker is enabled"></a>
</body>
</html>