The js history object simply implements return and forward


Return and forward use the history object in the DOM:

Returns:


<a href="javascript:history.go(-1)"> return </a> //This is equivalent to calling the back() method of the history object.

Forward:


<a href="javascript:history.go(1)"> forward </a> //This is equivalent to calling the forword() method of the history object.