<html>
<head>
<title>Block alert from blocked popup?</title>
<script>
if (location.search.indexOf("popup") != -1) {
document.write("This should still be inside the tab, but it is now " +
"in a new window!");
alert("The popup has been \"popped out\" of the tab");
} else {
window.open("?popup");
}
</script>
</head>
<body>
<h1>Block alert from blocked popup?</h1>
</body>
</html>