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();
}





相关文章:

  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-09-30
  • 2021-10-07
  • 2021-06-23
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案