老师,我这种编法哪里出错了?
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
function openWindow(){
var one=confirm("确定吗?");
if(one==true){
window.open('http://www.imooc.com/','_blank','width=400px,height=500px,menubar=no,toolbar=no,scrollbars=yes,status=yes');
}
else
document.write("nothing");
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>