fire an event on click of a browser close "X" button
407392Feb 5 2004 — edited Feb 20 2004hi,
here is the scenario.
an icon on the parent window when clicked opens a child window. Selections can be made in the child window and when user clicks an "apply" button a <primaryClientAction> is fired with a param (call it "reloader") set to true. On the child window in the <body> there is onLoad which calls the javascript to reload the parent if, the dataBound "reloader" returns true, thus causing an effect on the parent.
here is my question.....
How do I fire an event when I close the window using "X" button on the child window! this way I can pass some other parameter and cause a different effect on the parent. can it be done from javascript???
If i use the onUnload in the body along with the onLoad, every time I click the "apply" button in the child window the OnUnload is also called. .
any suggestions please..
regards,
raj