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();
}
原创文字只代表本人某一时间内的观点或结论,本人不对涉及到的任何代码担保。转载请标明出处!