谷歌浏览器下JS无法关闭JSP

问题:谷歌浏览器无法使用JS关闭当前页
场景:A.jsp表单提交成功后跳转至B.jsp,在B页面点击按钮触发JS关闭当前页面,在IE测试可以关闭,谷歌无法实现.
代码:
html代码:

 <section class="btngroup">
    <div class="close" onClick="closePage()"></div>
    <br/><br/><br/>
</section>

JS代码:

function closePage(){
        console.log("进入js");
            if(navigator.userAgent.indexOf("MSIE") > 0){
                console.log("MSIE");
                if(navigator.userAgent.indexOf("MSIE 6.0") > 0){
                    console.log("MSIE 6.0");
                 window.opener = null;
                 window.close();
                }else{
                    console.log("MSIE 6.0 else");
                 window.open('', '_top');
                 window.top.close();
                }
             }
             else if(navigator.userAgent.indexOf("Firefox") > 0){
                 console.log("Firefox");
                window.location.href = 'about:blank ';
             }else{
                 console.log("谷歌");
                window.opener = null;
                window.open('','_self','');
                window.close();
             }
    }

百度搜索出的结果基本都是用此方法,在两台电脑上(XP系统)的谷歌都无法关闭,请教各位该如何改进?谢谢

非window.open打开或者a target=_blank用window.close无法关闭,ie能关闭只是特例

多谢指点,那我需要调整一下实现方式了