求大神 幫我看下 為啥不能關閉?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>無標題文檔</title>
<script>
function abc(){
var num=window.open('http://www.baidu.com','_blank','width=200,height=200,top=100,left=100');
varnum1=confirm("是否要關閉新打開的窗口")
{
if(num1==true){
num.close();
alert('已關閉');
}
}
}
</script>
</head>
<body>
<input type="button" value="打開新窗口" onClick="abc()" />
</body>
</html>
2016-08-11
會了 少打了一個空格~