为什么我把关闭放在按钮函数里面实现不了关闭网页
<!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");
function myclose()
{
mywin.close();
}
</script>
</head>
<body>
<input name="button" type="button" onClick="myclose()" value="close">
</body>
</html>