Submitted by northben on Sat, 10/03/2015 - 20:25
I needed to prevent a webpage from closing automatically. Turns out this is very easy to do with JavaScript!
Just paste this one-liner into the JavaScript console.
window.onbeforeunload = function(){alert();}