Would you like to enable your visitors to click on a link to be taken back to the previous page they were on? This JavaScript will enable you to do just that. This JavaScript code is great for use in pop up windows when you're running image slide shows, displaying multiple tips, step by step instructions or whatever you'd like.
The back link is a link that moves the browser backwards one page, as if the user had clicked the Back button available in most browsers. Back links use JavaScript. For example, the following link moves the browser back one page if your browser supports JavaScript (which it does) and if it supports the window.history object, which is necessary for back links: Go Back
For example on this webpage you might have noticed the "Back" button which brings you back to the previously loaded webpage. Actually, most web browsers already have this button, but you can make your own "link" for this purpose as well.
<a href="javascript:javascript:history.go(-1)">Click here to go back to previous page</a>
Which will work like this: Click here to go back to previous page