1<script> 2function 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