迁移过后的画面 chrome浏览器窗体 如何通过JS关闭


先上代码,我不会!
以下a页面点击链接跳转到b页面,点击b页面的链接关闭当前窗体
请问我该怎么办?
求助社区大神
我的目的只有一个 **{关闭chrome浏览器当前窗体}**
```html
a.html
<html><head>
</head><body>
<a href="b.html" >关闭当前窗体</a>
</body></html>

b.html
<html><head>
<script>
function test(){
}
</script>
</head><body bgcolor="#EBC79E">
<h3>Frame B</h3>
<a href="javascript:test()" >关闭当前窗体</a>
</body></html>
 

这个问题,我记得你提过呀

 <script>
        function test() {
            window.open("about:blank", "_top").close();
        }
    </script>

你可以尝试通过dom获取这个frame元素吗,这样就可以通过控制展示隐藏或者删除元素来关闭