The js history object simply implements return and forward
- 2020-03-26 21:48:28
- OfStack
Return and forward use the history object in the DOM:
Returns:
Forward:
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.