为什么我点取消也会跳转网页?
<!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 wind=confirm("是否关闭当前页面");
if(wind==true){window.open("http://www.imooc.com","width=400","height=500","menubar=no","toolbar=no");
}
eles{
window.close();
alert("再见");}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>