a.html

<script>
function toA(){
window.open('b.html','bIndex','');
window.opener =null;
window.open('','_self');
window.close();
}
</script>
这样在ie浏览器下是可以实现功能需求的,但是在chrome下运行好像不支持第二参数,无法重定位到已打开的b页面。如果大家有合适的解决办法可以分享一下,我就十分感激了,谢谢。function toA(){
window.open('b.html','bIndex','');
window.opener =null;
window.open('','_self');
window.close();
}
</script>