哪里错了呢
<script type="text/javascript">
function openwindow(){
var yaolan=confirm("是否打开网页");
if (yaolan=="ture")
{
var liuwenlong=prompt("请输入网址");
if(liuwenlong=="http://www.imooc.com")
{
window.open('http://www.imooc.com','_block','width=400px,height=500px,');
}
else
{
alert("输入网址有误");
}
}
else{
document.write("你取消了打开网页");
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>