blob: 063d972fb9ca707757b81236b452611ad40073eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<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>
|