Well you know - try as I like, I could NOT get the DOM method addEventListener to work for beforeunload.
Doing it the old way: window.onbeforeunload = function(){ return "Are you sure?" }
Well you know - try as I like, I could NOT get the DOM method addEventListener to work for beforeunload.
Doing it the old way: window.onbeforeunload = function(){ return "Are you sure?" }