Back button on product page?

I have a product page that I would like to add a button by which people can go back to their last visited page.

I am aware this is possible in a header/footer but haven’t found a solution that enables me to use a button in the body of a page.

Any ideas?

Hello Alex B.

you could create a data-collection (something like “SITE-OPTIONS”) in which you could put in (save) all the needed data (changes) on your site.

So you would always be able to load needed data in every situation if you need it.

For example, you switch to another site-page and want to get back to the last one, so you just have to load the last-one saved page from the marked data-collection (SITE-OPTIONS).

Thanks for the response, whilst I’m pretty savvy with a lot of web related things I’m not sure I follow your answer - would you be able to add any code to help?

All you have to do before you leave your actual site , is to save every time the actual URL of the site in a data-base.

For example:
You switch from SITE-A to SITE-B. But before the URL changes, you safe the old one to your database. Then when you need to come back to the last visited site, you just READ-OUT from your database, the saved URL. :roll_eyes::grin:

These are the steps to your aim (wish-result)…

  1. Create a DATA-COLLECTION

  1. Create a REFERENCE in the new created DATA-COLLECTION named something like —> [LatVisitSite]


Now you have created the needed data-collection to save every time the URL before leaving the site, or every time when enter a site.

  1. On every site-page you can find the following code…
$w.onReady(function () {...do something after page is loaded...}

In this code you have to put in your command, something like…

“When i change my site, please save the URL of my actual site and put it into my DATABASE/DATA_COLLECTION, before continue to the next site.”

Or…

“Every time i enter an new site, please SAVE the actual URL of the current site.”

And here you go…

$w.onReady(function () {...do something after page is loaded...}