2005094.html (672B)
1 <div id=l1> 2 <div id=l2> 3 <iframe id="ifr"></iframe> 4 </div> 5 </div> 6 <script> 7 document.addEventListener("DOMContentLoaded", () => { 8 // On load, synchronously re-bind the iframe to cause another synchronous load 9 ifr.onload = () => l1.appendChild(l2) 10 try { 11 // Start a synchronous load that nests itself indefinitely 12 ifr.parentNode.appendChild(ifr) 13 } catch (e) { 14 if (e.name == "RangeError") { 15 // Silence stack overflow errors 16 } else { 17 throw e; 18 } 19 } 20 // Once we're here, something interrupted the infinite recursion 21 // Don't crash when trying to access the possibly broken document 22 window.frames[0].document.body 23 }) 24 </script>