blob: 8fd5b759312e5d1b2853a37c0ef5ab592d37ec23 [file] [log] [blame]
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.addEventListener('beforeunload', before, false);
window.onunload = unload;
function before()
{
alert( "before unload");
}
function unload()
{
alert( "unload" );
window.removeEventListener('beforeunload', before, false);
}
function load()
{
location = "resources/onunload-clears-onbeforeunload-success.html";
}
</script>
</head>
<body onload="load()">
start document
</body>
</html>