I am trying to create a button that will return the user back to the previous page that they came from. I have tried:
but for some reason it does not work.
Anyone have any ideas on how to get something like this working?
You could try putting your JS inside the onclick="" attribute instead of the href="" one.
Probably better to use a button in this case instead of an anchor:
<button onclick="history.go(-1)">Click here to back to previous page</button>
Have you created a collection on your online store and experienced an issue with adding yo...By Ollie Aug 24, 2022
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...By Ollie Jul 28, 2022