I have a form that uses the category name to feed a hidden field. the results page does NOT know that category.
I need to have a “back” button to go back from the search results page to the search page. I’ve chosen the javascript function as such:
<a href=”#” onClick=“history.go(-1)”>[image here]</a>
this takes me back to page no problem - but it resubmits the form!!! how can I keep that from happening? I need to go back and remember the previous state. Is there a referrer or previous url I can grab that won’t resubmit that page?
thanks!
[Mod Edit: Moved to the How To forum.]