为什么我的没法弹出提示框,代码如下.大伙帮我看看
<!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 mywindow= confirm("是否打开新窗口");
if(mywindow){
window.open('http://www.imooc.com','_blank','width=400px,height=500px');
else{
}
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>