Tuesday 6 November 2012

Refresh parent window from child window using javascript

Refresh parent window from child window using java script

Introduction : 

Open a new popup window and I want to Refresh the parent page with out closing current window.


Solution : 


Write down  following code on click event of child page.

opener.location.reload();
              

OR

If (window.opener && !window.opener.closed) {
      window.opener.location.reload();
 }

1 comment: