Reviewed by John.
[WebKit-https.git] / LayoutTests / fast / events / onunload.html
1 <html>
2 <body onunload="unload()" onload="load()">
3 <script>
4 if (window.layoutTestController)
5     layoutTestController.waitUntilDone();
6
7 function load()
8 {
9     location = "data:text/html,You should have seen an unload alert appear.<script>if (window.layoutTestController) layoutTestController.notifyDone(); </" + "script>";
10 }
11
12 function unload()
13 {
14     alert("unload");
15 }
16 </script>
17 start document
18 </body>
19 </html>