为何弹不出来
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>close()</title>
<script type="text/javascript">
function openUrl()
{
var mywin=window.open("http://www.imooc.com");
var pages=confirm("是否");
if(pages==true)
{
mywin.close( );
alert("开");
}
else
{
alert("关闭");
}
}
</script>
</head>
<body>
<input name = "button2" type = "button" onClick = "openUrl()" value= "是否关闭" />
</body>
</html>