返回后自动刷新一时想不到,不过在该页加上这句应该也可以:
<META HTTP-EQUIV="Expires" CONTENT="0">
令该页立刻过期,返回时就会重新装载。

解决方案 »

  1.   

    不要用history.back();
    <script>history.go(-1);</script>
      

  2.   

    history.back()=history.go(-1)还是不行!
      

  3.   

    TO: RiskyWei(pretty) ( ) 能否详细一点?
      

  4.   

    试试看:
    <script>
    top.close();
    </script>
    <body onload="FillState();">
    --刷新返回后的页面--
    <script language="JavaScript">
    parent.opener.location="返回后的页面.asp";
    </script>
      

  5.   

    <%url=Request.ServerVariables("http_referer")%>
    <script>
    function rtn
    {
     document.href='<%=url%>';
    }
    </script>
    <input type='button' onclick='trn()' value='返回'>
      

  6.   

    上面有错误:)
    url = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")
      

  7.   

    把<META HTTP-EQUIV="Expires" CONTENT="0">改为
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    试一试
      

  8.   

    我有疑问:
      javascript:history.back()
    这里使用的js应该是ruanat=client吧?
    是不是应该在客户端,由template internet files里面直接取的?就是说:IE只是把buffer里的原来的玩艺给你拿出来而已。
    如果是这样的话:那你就用runat=server的程序来自己控制返回吧。
      

  9.   

    <body onload="location.reload()">
    ...
    </body>
      

  10.   

    //--让打开本窗口的父页面重新刷新(在同一个窗口)-->
    location.replace(document.referrer);
    //--让打开本窗口的父窗口重新刷新(两个窗口)-->
    window.opener.location.reload();
    //<!--当前页面重新刷新-->
    location.reload(true);
    //当前窗口刷新。
    window.parent.location.reload();
      

  11.   

    to cpls(温柔一刀)
    明显死循环啊
      

  12.   

    应该不能用location.replace吧,用了后,就不会有访问历史,也就是说不能用“javascript:history.back();”返回了。
      

  13.   

    实在不行的话可以用submit()提交。
      

  14.   

    在 
    void html_head(const char *title)
    {
    /* " <%                                      \n"
    " Response.Expires = 0                                                   \n"
    " Response.Expiresabsolute = Now() - 1                                   \n"
    " Response.AddHeader 'pragma','no-cache'                                 \n"
    " Response.AddHeader 'cache-control','private'                           \n"
    " Response.CacheControl = 'no-cache'                                     \n"
    " %>                                                                     \n"
    */
    printf(
    " <html>                                                                 \n"
    " <head>                                                                 \n"
    " <title>%s </title>                                                     \n"
    "  <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>                         \n"
    "  <META HTTP-EQUIV='Cache-Control' CONTENT='no-cache, must-revalidate'> \n"
    "  <META HTTP-EQUIV='expires' CONTENT='0'>                               \n"
    " </head>                                                                \n"
    "                                                                        \n"
        ,title);
    }不要用 javascript:history.back(); 返回, 用 联接 过去,
      

  15.   

    history.back(-1),这里的-1有什么作用?还有其他参数吗?