Demonstrates how to use session storage to know which site page the visitor previously visited. The code needs to be placed in the Site tab so that it runs on all of the site's pages. The code retrieves the URL of the page a visitor previously visited from session storage. It then stores the URL of the visitor's current page in session storage. When the visitor navigates to another page, this stored URL is retrieved as the previous page URL.
Go to the Back Button page.
See more examples at Gramp's Workbench.