from 
http://www.webdevelopersjournal.com/articles/dhtml3/dhtml3.htmlThe history objectWhen you are surfing the net, you often use the back and forward buttons to go back to a page you have already visited. The history object allows us to travel forwards and backwards in script.The use of the history object is straightforward.history.back();sends us back one pagehistory.forward();sends us forward one pageWe can also usehistory.go(n);which sends us forward n pages (n>0), or back n pages (n<0).history.length retrieves the number of elements in the History list. 

解决方案 »

  1.   

    method 1: use location.replace to load all the pages in 一个会话method 2: close the window and open a new one
      

  2.   

    给你个例子吧,
    <input type=submit name="press" value="数据错误请返回" onclick="javascript:history.back()"   >
      

  3.   

    你把history.back()换成上面兄弟说的你想用的属性就可以了。
      

  4.   

    window.history.back()
    window.history.forward()
    window.history.go()
    window.history.lengtheg:
    window.history.go(-1)==window.history.back()
    window.history.go(1)==window.history.forward()
    window.history.go(-2)
      

  5.   

    histroy.length: readonlyIf you are interested in it, you will find some fun in testing this:JavaScript:{var str=window.location;histroy.go(-history.length);window.location.replace(str);}you can also change str to something else;
      

  6.   

    1.Attributes/Properties 
     
    Syntax[ iLength = ] history.length
    Possible ValuesiLength Integer that receives the number of elements. The property is read-only. The property has no default value.Standards InformationThere is no public standard that applies to this property. 
    2.Methods
    back: Loads a previous URL from the History list.  
    forward: Loads the next URL from the History list. 
    go: Loads a URL from the History list.  Syntaxhistory.back( [iDistance])
    ParametersiDistance Optional. Integer that specifies the number of URLs to go back. If no value is provided, the previous URL is loaded.  Return ValueNo return value.ResThis method performs the same action as a user clicking the Back button in the browser. The back method works the same as history.go(-1). An error does not occur if the user tries to go beyond the beginning of the history. Instead, the user remains at the current page. Standards InformationThere is no public standard that applies to this method. 
    Syntaxhistory.forward()
    Return ValueNo return value.ResThis method performs the same action as when a user clicks the Forward button in the browser. Calling the forward method works the same as calling the go method with a parameter of 1. An error does not occur if the user tries to go beyond the end of the history. Instead, the user remains at the current page.Standards InformationThere is no public standard that applies to this method. 
    Syntaxhistory.go(vLocation)
    ParametersvLocation Required. Variant that specifies an integer or a string. An integer indicates the relative position of a URL in the History list. A string indicates an exact URL in the History list. Return ValueNo return value.ResAn error does not occur if the user tries to go beyond the beginning or end of the history. Instead, the user remains at the current page. Standards InformationThere is no public standard that applies to this method.