function CloseWebPage() {
if (navigator.userAgent.indexOf("MSIE") > 0) {
if (navigator.userAgent.indexOf("MSIE 6.0") > 0) {
parent.window.opener = null;
parent.window.close();
} else {
parent.window.open('', '_top');
parent.window.top.close();
}
} else if (navigator.userAgent.indexOf("Firefox") > 0) {
//parent.window.location.href = 'about:blank ';
//parent.window.history.go(-2);
parent.window.opener = null;
parent.window.close();
} else {
parent.window.opener = null;
parent.window.open('', '_self', '');
parent.window.close();
}
}
js 获取 关闭当前窗口
最新推荐文章于 2024-08-12 10:38:25 发布