谁帮我看一下我这里哪里出错了,实在找不出来…
<!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 bool=confirm("是否弹出对话框?");
if(bool=true)
{
var url=prompt("输入你想打开的网址:","http://www.imooc.com/");
if(url!=null)
{
window.open(url,'_blank','width=400,height=500,menubar=no,toolbar=no');
}
}
else
{
document.write("检测不到你想打开的网页");
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>