Refreshing the parent window or main window from a child or small window is a common requirement. For example in an auction script we can display the present highest bid and we can ask the bidder to enter the bid amount by opening a child window. Here once the bid is entered and submitted the child window should close and then the parent window must refresh to display the entered bid amount. Here we will use the code at the child window to refresh the parent window.
Opening closing & Passing data from Child window to parent window in JavaScript & refreshing main
<html>
<head>
<title>(Type a title for your page here)</title>
<SCRIPT language=JavaScript>
<!--
function win(){
window.opener.location.href="window-refreshing.php";
self.close();
//-->
}
</SCRIPT>
</head>
<body bgcolor="#ffffff" >
<font face='Verdana' size='2' >This is the child window opened . Click the button below to close this window and refresh the main window</font>
<br><br>
<center><input type=button onClick="win();" value="Close this window"></center>
</body>
</html>
JQuery Manaing Parent & Child window Pass the data betweeen parent and child window and refreshing part of the parent window once Data is changed at child window.