Forum Moderators: open
<a href="javascript:history.back();">Fix It</a>
To allow the user to return to the original form and re-upload the image. However, when you click on the link, nothing happens. It stays on the same page! If I use the back button in the browser--same thing. I should note that the window the form is in has been created by window.open() and is a window called new_window. I have tried using javascript:new_window.history.back(), to no avail :(
An obvious solution would be to pass all the form variables to the link and just do it via PHP. But I feel like just moving back should do the trick.
It doesn't appear that any caching is going on, but perhaps I just am looking in the wrong place. Anyone haev any idea or tips on preserving form data and using history.back()?
Thanks :)
Incidentally, you can test out the script here:
<sorry, no test URLs>
[edited by: tedster at 6:31 pm (utc) on May 6, 2003]