在B页面里:
<body onload="setTimeout('window.close()', 5000)"
 onunload='opener.location.reload()'>

解决方案 »

  1.   

    其实挺简单的
    1,页面自动刷新:把如下代码加入<head>区域中<meta http-equiv="refresh" content="20">,其中20指每隔20秒刷新一次页面.2,页面自动跳转:把如下代码加入<head>区域中<meta http-equiv="refresh" content="20;url=http://www.***.***">,其中20指隔20秒后跳转到http://www.***.***页面
      

  2.   

    弹出窗口自动关闭10秒后弹出窗口自动关闭 脚本说明:
    第一步:把如下代码加入<head>区域中
    <script language="JavaScript">
    <!--
    var gt = unescape('%3e');
    var popup = null;
    var over = "Launch Pop-up Navigator";
    popup = window.open('', 'popupnav', 'width=225,height=235,resizable=1,scrollbars=auto');
    if (popup != null) {
    if (popup.opener == null) {
    popup.opener = self; 
    }
    popup.location.href = 'tan.htm';
    }
    // -->
    </script>
    第二步:新建tan.htm文件(注意要与上面的对应!)
    第三步:在新建文件中加入如下代码(注意两个文件要在同一目录下)
    <script language="JavaScript">function closeit() {setTimeout("self.close()",10000)}</script>