Skip to main content

JavaScript infinite alert prank lands 13-year-old Japanese girl in hot water

posted onMarch 8, 2019
by l33tdawg
Arstechnica
Credit: Arstechnica

Japanese police in the city of Kariya have questioned and charged a 13-year-old female student for distributing malicious code online after she linked to the code on an online message board. The malicious code in question? An infinite loop that popped up an alert message, immediately showing a new message each time you click OK.

Those curious to see the code can see it in action here, though it's probably unwise to visit on mobile browsers, as they don't seem particularly tolerant of this kind of prank. Every mainstream desktop browser seems to handle the malicious page without incident. Edge, for example, offers a checkbox to prevent the page from being able to show subsequent dialogs, and Chrome lets you close the tab in spite of the alert box. The code itself is extraordinarily simple; it's literally nothing more than an infinite loop and an alert box that prints a some kaomoji and a short message that translates as "It's no use closing it so many times."

Source

Tags

Industry News

You May Also Like

Recent News

Tuesday, July 9th

Wednesday, July 3rd

Friday, June 28th

Thursday, June 27th

Thursday, June 13th

Wednesday, June 12th

Tuesday, June 11th

Friday, June 7th

Thursday, June 6th

Wednesday, June 5th