Javascript – Back to previous page

Sometimes, you will want to back to previous page, but you don’t want to use the back button of the browser. You can create a button in your website to do that.

You can do this with javascript

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

Revisions

No comments yet.

Leave a Reply