为啥不但不关闭而且还直接跳出两个页面?求大神指教
<!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 clos=myswin.confirm("你确定要关闭窗口吗?");
if(clos)
{
mywin.close();}
</script>
</head>
<body>
</body>
</html>