I am testing on Google Chrome.
I did a search and found that someone was using:
window.onbeforeunload = function() { if (hook) { return "Did you save your stuff?" } }
But when I use it, I still get "The changes you made may not be saved." message. How can I change it to what I want?
source share