0
我有一个简单的HTML布局:Window.open打开标签而非窗口在Firefox和Safari
<html>
<head>
<script>
function test() {
window.open('http://google.com','','menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=no,width=545,height=353');
}
</script>
</head>
<body>
<button onclick="test();">Test</button>
</body>
</html>
单击该按钮应该打开一个新的窗口,我指定的规格。但是,它在Firefox和Safari中打开了一个新选项卡。它在铬中效果很好。还没有测试过其他浏览器。上面的代码有问题吗?