为什么我这样写它没有页面打开?
<!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 xixi=confirm("你确定要打开吗");
if(xixi=="true");
{
alert("勇气可嘉");
else
alert("为什么轻易放弃");
}
mywin.close();
</script>
</head>
<body>
</body>
</html>