navigation-within-beforeunload-1.html (196B)
1 <!doctype html> 2 004-1 3 <script> 4 addEventListener("beforeunload", 5 function() { 6 if (top.counter++ < 999) { 7 location = "navigation-within-beforeunload-2.html?" + top.counter; 8 } 9 }, false); 10 </script>