无法弹出确认框
<!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 mynew=confirm("是否打开新窗口?")
if (mynew==true) {
var dz=prompt("请输入网址:","http://www.imooc.com");
if (dz!=null) {
window.open(dz,"_blank","width=400px,height=500px,meunbar=none,toolbar=none")
}
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>
var mynew=confirm("是否打开新窗口?")这句后面加了;就无法运行了吗?去掉;就正常的