Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

onunload not working in JSP

843838May 3 2006 — edited May 4 2006
Hi All
I have a screen which opens another popup on click of button. The pop up does some procession and when i am closing the pop up window using the 'X' button of the browser, it should refresh the parent window. but it is not refreshing the parent window. I am using the following code in the function which is being called at unload:
function fnCloseButton(){
window.opener.location=window.opener.location;
	window.close();
}
Call to the function is like this:
<BODY onunload="javascript:fnCloseButton();">
Even if i give an alert at onunload of body, it is not working. :(

If anyone can help me.........
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 1 2006
Added on May 3 2006
7 comments
431 views