You can easily provide a link back to the previous page to your visitors with this simple code.
The browser stores a history of all pages the user has visited. The history.go(-1) will take the user back 1 page. If you insert history.go(-2) then the back link will take the user back 2 pages and so on.