<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
var asd;
function Wopen(){
asd=window.open('http://www.imooc.com','_blank','width=600,height=400,top=100px,left=0');
}
function close(){
asd.close();
}
</script>
</head>
<body>
<input name="button" type="button" onClick="Wopen()" value="点击我,打开新窗口!" / >
<input name="button" type="button" onClick="close()" value="点击我,关闭新窗口!" / >
<!--点击无效,并没有关闭,如何关闭?-->
</body>
</html>