How to go back to the previous page with JavaScript

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.

More Similar Posts

No results found.

Menu