到底哪儿错了...
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
function openWindow(){
var message=confirm("是否要打开一个新网页?");
if(message==true){
var website=prompt("请输入网站地址:","http://www.imooc.com/");
if(website!=null){
window.open('website','_blank','width=400,height=500,top=0,left=0,menubar=no,toolbar=no,scrollbars=yes,status=yes');
}
else{
alert("再见吧朋友");
}
}
else{
alert("再见吧孩子");
}
}
openWindow();
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>
运行不了,有大神能帮忙指出错误吗?