loading-different-page-in-iframe-while-iframe-sets-spellcheck-attr-from-load.html (331B)
1 <html> 2 <head> 3 <script> 4 function crash() { 5 document.querySelector("iframe").onload = null; 6 document.querySelector("iframe").srcdoc = "2nd page"; 7 } 8 </script> 9 </head> 10 <body onload="crash()"> 11 <iframe srcdoc="<html><body onload=$quot;document.body.setAttribute('spellcheck', true);$quot;></body></html>"></iframe> 12 </body> 13 </html>