标签:blank close 空白 index ref tle null open oca
var userAgent = navigator.userAgent;
//如果是Firefox或者chrome,页面就空白
if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) {
window.location.href="about:blank";
}
else {
window.opener = null;
window.open("", "_self");
window.close();
}
标签:blank close 空白 index ref tle null open oca
原文地址:http://www.cnblogs.com/samwang88/p/5eb62cc307b755bc77c8ec676e8ea7fd.html