How to go back to the previous page with JavaScript

6 sec read

Use the history.go(-1) function in conjunction with the anchor html element

Example

<a href="javascript: history.go(-1);">Go back to previous page</a>

Last Updated On March 20, 2018

Leave a Reply

avatar
  Subscribe  
Notify of