OneCompiler

warning will crash browser

235
<!DOCTYPE html> <html> <body> <h2>loving mom</h2> <p>Hit Ok To love your mom</p> <p id="demo"></p> <script> onbeforeunload = function(){localStorage.x=1}; if(confirm("Do you REALLY want me to love your mom?")){ setTimeout(function(){ while(1)location.reload(1) }, 1000) } </script> </body> </html>