Menu
Is there such an event which if returned false, the window should not close anymore? I am aware of window.onUnLoad, but I tried
[code]
window.onunload=function() {return confirm(“Close window?”);}
…and it didn’t work. I was wondering if anyone knows how I can achieve that?
And another question, if I fire a request (Ajax) on the onUnLoad event, will it reach the server…..?