function windowClose(){//关闭浏览器窗口
    if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") !=-1) {
        window.location.href="about:blank";
        window.close();
    } else {
        window.opener = null;
        window.open("", "_self");
        window.close();
    }
}

 

相关文章:

  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2021-04-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2021-08-29
  • 2021-09-28
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
相关资源
相似解决方案