huntrguy102 Posted February 22, 2010 Share Posted February 22, 2010 I have a search engine for books on my website. I have it so they can search and book and then at it to a cart. When they click add to cart, it sends then to the cart page. I was wondering if there was a way to make it so I could send them back to the previous page they were at with a link, such as "Back to search Results"? Do you need a little bit more information to answer this question or is it good enough? Thanks. Quote Link to comment Share on other sites More sharing options...
mapleleaf Posted February 22, 2010 Share Posted February 22, 2010 You can use javascript: <a href="#" onClick="history.go(-1)">Back</a> <input type=button value="Back" onClick="history.go(-1)"> Quote Link to comment Share on other sites More sharing options...
huntrguy102 Posted February 23, 2010 Author Share Posted February 23, 2010 thanks you very much. This worked perfectly Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.