How to go back to the previous page with JavaScript

No Comments

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>

Image Credits: Photo by Isis França on Unsplash.

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link