这可必须通过程序写啊。
history.go(-1);   只是返回。

解决方案 »

  1.   

    location.href = document.referrer?????返回到referrer页面行不???那返回是浏览器那一层上的事,JS己经是没有办法的了...
      

  2.   

    history.go(-1);   //后退1页
    history.back();   //后退1页
    history.go(1);    //前进1页
    history.forward() //前进1页
    history.go(-2)    //后退1页
    history.go(2)     //前进2页
      

  3.   

    在客户端可以尝试使用userData来保存用户数据,参考http://51js.com/viewthread.php?tid=1696
    ---------------------------------------------------
    <HTML>
    <HEAD>
    <STYLE>
    .storeuserData {behavior:url(#default#userData);}
    </STYLE>
    <SCRIPT>
    function fnSaveInput(){
    var oPersist=oPersistForm.oPersistInput;
    oPersist.setAttribute("sPersist",oPersist.value);
    oPersist.save("oXMLBranch");
    }
    function fnLoadInput(){
    var oPersist=oPersistForm.oPersistInput;
    oPersist.load("oXMLBranch");
    oPersist.value=oPersist.getAttribute("sPersist");
    }
    </SCRIPT>
    </HEAD>
    <BODY>
    <FORM ID="oPersistForm">
    <INPUT CLASS="storeuserData" TYPE="text" ID="oPersistInput">
    <INPUT TYPE="button" VALUE="Load" onclick="fnLoadInput()">
    <INPUT TYPE="button" VALUE="Save" onclick="fnSaveInput()">
    </FORM>
    </BODY>
    </HTML>