summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/quit-inside-unload.html
blob: 23ae71d3311001bc07029c9a51acb9c2cfc031dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<script>
    var showedAlert = false;
    function handleUnload()
    {
        if (showedAlert)
            return;

        showedAlert = true;
        alert("Now Quit Safari. Do not dismiss this alert first.");
    }
</script>
<body onunload="handleUnload()">
    Close this window
</body>