914521.html (727B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <meta charset="UTF-8"> 5 <script> 6 7 function f() 8 { 9 function spin() { 10 for (var i = 0; i < 8; ++i) { 11 var x = new XMLHttpRequest(); 12 x.open('GET', 'data:text/html,' + i, false); 13 x.send(); 14 } 15 } 16 17 window.addEventListener("popstate", spin); 18 window.close(); 19 window.location = "#c"; 20 setTimeout(finish,0); 21 } 22 23 var win; 24 function finish() { 25 win.close(); 26 document.documentElement.removeAttribute("class"); 27 } 28 29 function start() 30 { 31 win = window.open("javascript:'<html><body>dummy</body></html>';", null, "width=300,height=300"); 32 win.onload = f; 33 } 34 35 </script> 36 </head> 37 <body onload="start();"></body> 38 </html>