Malicious sample JavaScript code – how to create an infinite loop in a modern-day browser window. Tip – don’t run on a mobile device!

image thumb451

image thumb451

This is the code the 13-year-old Japanese girl was arrested for by Japanese police with no sense of humor. I’ve run it on a Windows box and yeah, you can get out of the loop. Works on Chrome and most mobile browsers.

WARNING: DO NOT RUN ON A MOBILE DEVICE!

<html>
<head>
  <script language="JavaScript">
    for ( ; ; ) {
    window.alert("Infinite loop baby!")
    }
  </script>
</head>
<body/>
</html>

 

Share with

Start typing and press Enter to search

Shopping Cart

No products in the cart.

Signup now!

NOW

Sign up for
our newsletter
and get new exclusive product
alerts, news flashes, inside industry
information, and MORE.

Get notifications of new products, insider industry news, science and tech features, and more.