summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/safe_browsing/interstitial_cancel.html
blob: de48c8ee112c200e2ae0d4c8e7b5a96d80af18c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<html>
<head>
<script type="text/javascript">
var tab;
function openWinIFrame()
{
  tab = window.open("iframe_redirect_malware.html");
}

function openWin()
{
  tab = window.open("redirect_to_malware.html");
}

function stopWin()
{
  tab.stop();
  // This will trigger a navigation event.
  window.location = "/";
}

</script>
</head>

<body>
<form>
<input type=button value="Open Redirect Window" onclick="openWin()">
</form>

<form>
<input type=button value="Stop Window" onclick="stopWin()">
</form>
</body>

</html>