manual-006.html (320B)
1 <!doctype html> 2 <title>Prompt when beforeunload returns string value</title> 3 <script> 4 addEventListener("beforeunload", 5 function(e) {return "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>