为什么confirm会弹出两遍窗口???
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>close()</title>
<script type="text/javascript">
var mywin=window.open("http://www.imooc.com");
var i;
i = confirm("是否关闭新开的页面");
if(i==true)
mywin.close();
</script>
</head>
<body>
</body>
</html>