Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

fire an event on click of a browser close "X" button

407392Feb 5 2004 — edited Feb 20 2004
hi,
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2004
Added on Feb 5 2004
8 comments
887 views