[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / events / onunload.html
1 <html>
2 <body onunload="unload()" onload="load()">
3 <script>
4 if (window.layoutTestController) {
5     layoutTestController.dumpAsText();
6     layoutTestController.waitUntilDone();
7 }
8
9 function load()
10 {
11     location = "data:text/html,You should have seen an unload alert appear.<script>if (window.layoutTestController) layoutTestController.notifyDone(); </" + "script>";
12 }
13
14 function unload()
15 {
16     alert("unload");
17 }
18 </script>
19 start document
20 </body>
21 </html>