function closeWebPage() { if (navigator.userAgent.indexOf("MSIE") > 0) { if (navigator.userAgent.indexOf("MSIE 6.0") > 0) { window.opener = null; window.close(); } else { window.open('', '_top'); window.top.close(); } } else if (navigator.userAgent.indexOf("Firefox") > 0) { window.location.href = 'about:blank '; } else { window.opener = null; window.open('', '_self', '').close(); window.close(); } }
js关闭浏览器窗体
猜你喜欢
转载自weifengxuxu.iteye.com/blog/2234720
今日推荐
周排行