history.back( [iDistance])
history.go(vLocation)

解决方案 »

  1.   

    tryjs:
    document.referrer
    asp:
    Request.ServerVariables("HTTP_REFERER") 
      

  2.   

    <a href=\"JavaScript:window.history.back()\">返回上一步</a>
      

  3.   

    <input type=submit name="press" value="数据错误请返回"  onclick="javascript:history.back()"   ><input type=button name="press" value="数据传输中出错请返回重试" style="background-color:  #CCCCFF; color: rgb(0,66,204);" onclick="javascript:location.href='/pathweb/web/payment02.jsp'"   >
      

  4.   

    你可以把按钮换成<a href=的形式
      

  5.   

    <input type="button" value="返回" onclick="javascript:history.back(-1)">