Guest_imported
New member
- Jan 1, 1970
- 0
hello there,
i want to execute a javascript function, when user closes the child window. for that, i've given a button in my code. when user clicks on it, i am calling a function which executes the code and then closes the window with self.close() method.
now, if user closes the window using the control panel's close button, then how can i restrict him?
can i disable control panel's close button?
i've tried to use Body Unload() event, but it doesn't serve my purpose. as, it will be fired every time the form in the window is submitted. Is there any event handler which can handle the window close event such as window close()?
any help would be appreciated.
thanks,
paras
i want to execute a javascript function, when user closes the child window. for that, i've given a button in my code. when user clicks on it, i am calling a function which executes the code and then closes the window with self.close() method.
now, if user closes the window using the control panel's close button, then how can i restrict him?
can i disable control panel's close button?
i've tried to use Body Unload() event, but it doesn't serve my purpose. as, it will be fired every time the form in the window is submitted. Is there any event handler which can handle the window close event such as window close()?
any help would be appreciated.
thanks,
paras