Friday, March 6, 2009

Javascript back button

Create a link or a button to go to the previous page, using this code:
<a href="javascript:history.go(-1)">Back</a>



This way, the visitor can go back to the previous page without pressing the "Back" button of his browser.

No comments: