javascript_howto thread: showModalDialog result for a ONBEFOREUNLOAD event
I want to perform some action before closing the window. I add an ONBEFOREUNLOAD event and give a massage to the event.returnValue to show the showModalDialog asking the user if he want to close or not. My question is : Can i get the answer, the click (OK or Cancel) of the user so that I can perform the action that I need before closing the window.
|





