下面的页面有什么问题?
<html>
<head>
<script type="text/javascript">
function openWin(url, w, h)
{
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
w=window.open(url, '_blank', 'width='+w+', height='+h+', scrollbars=no, menubar=no, resizable=no, location=no, toolbar=no, top='+top+', left='+left+', 'false');
w.focus();
}
</script>
</head>
<body>
<input type="button" value="Open window" onclick="openWin(about:blank, 200, 200)" />
</body>
</html>
每当我单击按钮时,什么都没有发生。
使用铬