JS关闭窗口

//点击关闭窗口 ---W3C的标准是:JS只能关闭由JS打开的页面,所以要模拟打开
function CloseWindow(){
    window.open('', '_parent', '');

    window.close();
}

火狐不能通过JS操作窗口关闭

原文地址:https://www.cnblogs.com/liupengfei19940119/p/3988887.html