Liquid, JavaScript, themes, sales channels
I am trying to create a button that will return the user back to the previous page that they came from. I have tried:
<a href="javascript:history.go(-1)">Click here to go back to previous page</a>
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>
User | RANK |
---|---|
33 | |
31 | |
28 | |
16 | |
14 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By