manual-002.html (328B)
1 <!doctype html> 2 <title>Prompt when beforeunload has returnValue set</title> 3 <script> 4 addEventListener("beforeunload", 5 function(e) {e.returnValue = "PASS if you see this"}, 6 false); 7 </script> 8 <p>When clicking the link below, you should get a prompt asking if you want to unload the document</p> 9 <a href="next.html">Click here</a>