1 <script> 2 function crash() { 3 var w = window.open("data:text/html,foo"); 4 w.print(); 5 w.close(); 6 } 7 </script> 8 <button onclick="crash()">Crash</button> 9