Thursday, October 18, 2007

To refresh Parent Window from Pop Up Window


Sometimes it is required to refresh your Parent Window through Child Window, Here is a small piece of java script code which will solve your problem.

window.opener.location.reload();

Put this code in any function of Child Window. When that function is called parent window will be reloaded.

2 comments:

Indika Abayarathne said...

Thaaaaaaaaanx...! It works!
Before using this, I used "window.opener.document.forms.submit();".
that also works properly in IE. But not in Firefox,Mac-Safari.
This works in IE6,IE7,Firefox and in Mac-Safari browsers.

Viren said...

Welcome.

back to top