Forum Moderators: open
My problem. I am using this code:
<a href="#" onclick="history.go(-1);return false;">
but, I want it to reload the last page as it goes back to it. Otherwise, that last page is not reflecting the item was added to the basket in the "Quantity in Basket" slot. I am afraid the customer will add another one thinking it didn't stick.
Is there a way to alter that above code so that it refreshes the last visited page as it goes back to it?
Thanks!
Yes, I am using a form to add items to the basket. We purchased <a template suite> to customize the look and feel of the site. I altered the template that came with it, and it had the form.
I believe the server-side language is PHP. We went through <specific host removed>.
We are having another problem as well, but I will post that in a separate post to keep these apart.
Thanks so much!
Linda
There is another way, and it is actually better because Javascript is not needed.
It does depend how you add items to your basket. Do you use a <form> or regular href links?
Also, what server-side language do you use? (PHP, ASP, etc.)
[edited by: tedster at 12:16 am (utc) on Mar. 20, 2006]
[edit reason] no specific business, thanks [/edit]
The "continue shopping" button that has the goback script attached to it is used whether they have gotten there via the add to basket, or if they click on one of the "basket contents" buttons.
Unless I am misunderstanding what you are suggesting, I don't think this method will work.
Thanks for your advise though! I do appreciate it.