打不开网址,哪里错了?求帮助!!!!
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
function openWindow(){
var webadress=prompt("是否打开网站","http://www.imooc.com");
if(webadress==true)
{window.open(webadress,'width=400,height=500,menubar=no,toolbar=no, status=no,scrollbars=yes')
}
else
{alert("结束");}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>