其他分享
首页 > 其他分享> > js window.open的页面里关闭当前窗口,刷新原来的窗口

js window.open的页面里关闭当前窗口,刷新原来的窗口

作者:互联网

 

window.onbeforeunload = null;
window.onunload = null;
//window.opener.top.location.href = "/login/login.aspx"; //location
window.opener.location.href = window.opener.location.href;
window.opener = null;
window.close();

 

标签:窗口,js,window,href,opener,login,null,location
来源: https://www.cnblogs.com/lhr518/p/15601390.html