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