这个哪出问题了
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>close()</title>
<script type="text/javascript">
function openur1(){
var mywin=window.open("http://www.baidu.com");
var mynu=confirm("是否要关闭窗口");
if(mynu==true)
{
mywin.close();
alter("已关闭");
}
else{
alert("关闭失败");
}
}
</script>
</head>
<body>
<input name="button" type="button" onClick="openur1()" value="点击" >
</body>
</html>