Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: showModalDialog result for a ONBEFOREUNLOAD event


Message #1 by "Martin Bolduc" <wakoye@h...> on Mon, 8 Apr 2002 22:44:28
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.

  Return to Index