为什么点了没反应?哪里错了?本人新手,想问下{}这个怎么用,怎么配对??
<!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 open=confirm("是否进入新的标签页");
if(open==true)
{ window.open('http://www.imooc.com','_blank','width=400,height=500',menubar=no,toolbar=no);}
else
{var new=prompt("输入你要进入的网页!")
window.open("new")}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>