为什么我的无法运行啊
<!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 web1 = confirm("你需要打开网址么?");
if (web1==true);
{
var web2 = prompt('请输入网址','http://www.baidu.com');
window.open(web2,'_blank','width=100,height=300,menubar=no');
}
else{
return flase;
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>