关不了么?
<!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 wocao(){
window.close();
}
</script>
</head>
<body>
<input name='button' type='button' onClick='wocao()'value='点击关闭'/>
</body>
</html>