file_bug1700871.html (590B)
1 <!doctype html> 2 <a id="link-1" href="?1" onclick="window.open(this.href, 'childWin', 'height=300,width=600'); return false;">Open in window.</a> 3 <form target="frame" method="get"> 4 <input type=hidden name=counter value=0> 5 <iframe name="frame" href="file_bug1700871.html"></iframe> 6 </form> 7 <script> 8 (function submitForm() { 9 if (location.search) { 10 return; // Don't fork-bomb ourselves. 11 } 12 13 let counter = document.querySelector("input"); 14 counter.value = ++counter.value; 15 document.querySelector("form").submit(); 16 setTimeout(submitForm, 500); 17 }()); 18 </script>