javascript刷新父页面的内容

适应于超级链接和弹出窗口 function RefreshParent() {     if (window.opener != null) {                               var btnSearch = window.opener.document.getElementById("btnSearch");         if (btnSearch != null && typeof (btnSearch) != "undefined") {             btnSearch.click();         }         else {             window.opener.location.href = window.opener.location.href;         }           }     window.opener = null;     window.open('', '_self');     window.close(); }
原文地址:https://www.cnblogs.com/leleroyn/p/3863064.html