Refresh your parent Window after closing pop up window

You could refresh your parent window after closing the pop up window from many methods. From those method some is given blow.

1. Firstly You can make function and call this function where you need this code. The code is given blow

<script language="JavaScript">
function refreshParent() {
window.opener.location.href = window.opener.location.href;

if (window.opener.progressWindow)


You can use this code with out function also

2. Second method is given blow

if (window.opener && !window.opener.closed) {

Paste this code on your web page where you want to use it

If you want to use in code behind : Use given vlow code

Response.Write("<script>window.close(); if (window.opener && !window.opener.closed) { window.opener.location.reload(); </script>");


These all code will be write at the pop up window web page

Share This Post

Post Comment