Is there a way to escape a loop like the one below without closing the browser by terminating it process?
WARNING: Don't run the code below. Running this code will throw your browser in an infinite loop of alerts.
<html><body onload="while(true)alert('Hello')"></body></html>