大神们,哪里出错了阿
<!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 choose=confirm("是否打开?");
if(choose==true)
{
var newurl=prompt("确定打开的网址","http://www.imooc.com");
}
if(newurl!==null)
{ window.open(newurl,'_blank','width=400,heigth=500,menubar=no,toolbar=no');
}
else
{
alert("sorry1!");
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>