hungScript.html (420B)
1 <html> 2 <head> 3 <meta charset="utf-8" /> 4 <title>Hung Script</title> 5 </head> 6 <body> 7 <div id="content"></div> 8 </body> 9 <script> 10 var start = new Date().getTime(); 11 document.getElementById("content").innerHTML = "Started"; 12 // eslint-disable-next-line no-empty 13 while (new Date().getTime() - start < 5000) {} 14 document.getElementById("content").innerHTML = "Finished"; 15 </script> 16 </html>