自动关闭
<script>
window.opener = null;
window.close();
</script>
页面自动刷新:把如下代码加入<head>区域中
  <meta http-equiv="refresh" content="20">
  其中20指每隔20秒刷新一次页面。