PDA

View Full Version : back-button that works



campbeld
02-24-2006, 10:03 AM
I have a page with a contact form. I filled out the form and clicked submit. Then the form submitted and redisplayed the page. Then I clicked the javascript back-button. The form re-submitted but I expected to go back to the search results. Does anyone know of a way to edit the Javascript history to go back to the right page instead of resubmitting the form?

Pixelcode
02-24-2006, 03:11 PM
To go back to the page before you submitted the form:

javascript:history.go(-2)
:)