Forum Moderators: open

Message Too Old, No Replies

HTML links

last page viewed

         

anubis

2:37 pm on Sep 4, 2002 (gmt 0)

10+ Year Member



How do i create a html link that when clicked on goes back to the last page viewed what ever that was?

cheers

JJ

andreasfriedrich

2:47 pm on Sep 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<a href="javascript:history.back()">back</a>

PaulPaul

2:47 pm on Sep 4, 2002 (gmt 0)

10+ Year Member



I dont think this can be done using HTML alone. You can use javascript for this function.

Try this:

<FORM>
<INPUT TYPE="Button" VALUE="Back"
onClick="history.go(-1)">
</FORM>

The onclick part is the trick. There are a few different ways of doing this in javascript, but this method is cross-browser compatible.

Hope that helps.

PaulPaul

2:48 pm on Sep 4, 2002 (gmt 0)

10+ Year Member



andreasfriedrich, beat me to it :)

andreasfriedrich

2:54 pm on Sep 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



must have been some nano seconds. my post is shorter, so it took less time writing it ;)

anubis

3:00 pm on Sep 4, 2002 (gmt 0)

10+ Year Member



Thanks guys for your help.

JJ