Back Button


Demonstrates how to use session storage to know which site page a site 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.

wix-location wix-storage session storage Button

No cats were harmed in the making of this website.