| 5:41 pm on Jun 12, 2003 (gmt 0)|
history.go(-1); is what you are looking for I think!
| 5:45 pm on Jun 12, 2003 (gmt 0)|
<input type="button" value="Back" onclick="window.history.go(-1)" />
I think you can actually use the back() method of the window object too - but's all swings and roundabouts...
| 5:46 pm on Jun 12, 2003 (gmt 0)|
(Shouldn't leave pages open so long before replying - blobfisk got there first)
| 4:35 am on Jun 21, 2003 (gmt 0)|
Thank you all for the help. :)
| 4:07 pm on Jul 12, 2003 (gmt 0)|
Can you give me a next code? So that the page the viewer is on goes to the next page after that page?
*I walk on HTML!*
| 2:37 am on Jul 14, 2003 (gmt 0)|
will act like clicking the Next button on the browser.
will act like clicking the Next button on the browser twice.
Remember that the user has to go back before they can go forwards!
| 9:39 am on Jul 15, 2003 (gmt 0)|
about history.go(-1); be careful with it, sometimes it gives strange results... it's best to load again that page using it's url instead of history.go(-1);
you will get wrong results when you want to save a form, click back and save it again... you'll get 2 documents :(
| 10:29 am on Jul 15, 2003 (gmt 0)|
I've also played around with
<A HREF="<!--#echo var="HTTP_REFERER"-->">Back</A>
| 10:34 am on Jul 15, 2003 (gmt 0)|
The HTTP_REFERER is not always filled in (firewall/URL entered in address bar/bookmarked page), so history.go(-1) is safer.
| 4:21 pm on Jul 24, 2003 (gmt 0)|