views:

167

answers:

2

Hello All,

I am having 2 pop up screens in my (Main) jsp.

In the first pop-up the user will update the required information(Update) and after submitting the info, a new pop up will be shown that shows the modifications(View).

I would like to refresh the (Main ) page when the user clicks on the close "X" in the view page.

I tried to use some scripts like (below) in the view page, but it did not work: [html]

+4  A: 

Try putting this javascript code in your popup window:

window.onunload = function(){
  window.opener.location.reload();
};
Sarfraz
Thanks it worked
maas
@maas: You are welcome...
Sarfraz
A: 

thanks guys........

Suneel Kodali