PDA

View Full Version : Go Back/ Go Forward...


SolidWing68
03-02-2003, 03:36 PM
I wanna use a javascript that integrates the ability to say, Go Back 1, Go Forward 1..but how would it be?

javascript:GoBack(-1)
javascript:GoForward(+1)

I dunno if thats right, but if someone knows, let me know..Thanks

excaliber
03-02-2003, 04:30 PM
I believe this might be what you are looking for.......

javascript:history.back()
-----------------------------------
javascript:history.forward()

:)

brothercake
03-02-2003, 04:34 PM
or

history.go(-1)
history.go(+1)
history.go(-3)

and so on

SolidWing68
03-02-2003, 06:49 PM
but where would i put the links for the + and -

redhead
03-02-2003, 06:53 PM
<a href="anotherpage.html" onclick="history.back(1); return false;">Go Back</a>

<a href="anotherpage.html" onclick="history.go(1); return false;">Go Forward</a>

"anotherpage.html" being somewhere that the user without javascript would be sent to...