|
Links that go back to the last pageJust use this code to create links that go back to the previous page according to the user/viewer's browser history.
<a href="javascript: history.go(-1)">Go Back</a>
It uses javascript in the <a> tag. You can go back or go forward as many pages you want. A negative number is for going back while a positive number is for going forward. You can change the number to whatever you like, but keep as -1 if you just want to go back to the last page. |