I have a superior page with a search function added.

As follows

function FunClick(StrPriCaption) {
        var StrPriHTML = "";
        if (StrPriCaption == 'AdvSearch') {
            //document.getElementById('TxtCondition').value = "AdvSearch";
            var StrPriReturnValue = "";
            window.open('FrmInwardHdrAdvanceSearch.aspx', null, 'height=370,width=630,top=0,left=0,resizable=yes,scrollbars=yes');

It works perfectly. It will open a popup page for me to search.

But now what I want is if I close the popup, I want to refresh the parent page.

I tried the following code in the “child page” but did not refresh the parent page.

function CloseWindow() {

It will create a pop-up window with a link to close the window and refresh the parent window.

Demo: https://jsfiddle.net/eke4f72r/

Method 2

function popup() {
    var win = window.open("", "Page Title", "toolbar=no, location=no");
    var win_timer = setInterval(function() {   
      if(win.closed) {
      }, 100); 
<a href="#" onclick="popup()">Open Me</a>