Feedback on: irt.org FAQ Knowledge Base Q752
Worth:
Worth reading
Comments:
.history.go(-1) did not work on my Netscape v4.6 browser.
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
Hi there,
I was trying to figure out how to put a link on my page that would be the same as hitting the browser's BACK button. I found this article about using JavaScript and found it helpful, but I really wanted to use a normal link rather than a button (I had some groovy link colours worked out!).
Anyway, just thought you might be interested that I combined the info in this article with the info in Q902 and came up with this:
<A HREF="javascript:history.go(-1)">Back to previous page</A>
Seems to work fine so far.
Thanks for the knowledgebase, I only just found it, but it seems very in-depth.
Peter.
Length:
Just right
Comments:
There's a dot too many just before 'history':
<FORM><INPUT TYPE="BUTTON" VALUE="BACK" onClick=".history.go(-1)"></FORM>
should read:
<FORM><INPUT TYPE="BUTTON" VALUE="BACK" onClick="history.go(-1)"></FORM>
Worth:
Worth reading
Comments:
It would appear the solution offered up for Q752 doesn't retain the data on the page being returned to. Is there a way to Go Back and retain the data?