点击按钮没反应,求高手看看错在哪里
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript">
function openWindow()
{
var open=confirm("确定打开新的窗口");
if(open=true)
{
var url=prompt("打开输入的网址","www.baidu.com");
if (url!=null)
{
window.open(url"_blank");
}
else
{
alert("88");
}
}
else
{
alert("再见");
}
}
</script>
</head>
<body>
<form>
<input type="button" value="新窗口打开网站" onclick="openWindow()">
</form>
</html>