Question : onunload

Hi,
I want to get the oninload  before it closes the page and to be able to prevent from closing the page.
Is it possible?

Answer : onunload

1:
2:
window.onbeforeunload = function() { return false; }
window.onunload = function() { return false; }
Random Solutions  
 
programming4us programming4us