can someone please post the code for users to go back and forward from pages
cos im gonna put those links in my site
(will give rep)

can someone please post the code for users to go back and forward from pages
cos im gonna put those links in my site
(will give rep)
Post Count: :eusa_danc 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 :eusa_danc
Go back:
<A HREF="javascript:history.go(-1)">Go back.</A>
You mean like a back button ?
Also, you can'treally go forward because it wouldn't know what page to go to ?HTML Code:<form> <input type="button" value="Go Back" onclick="history.back(-1)"> </form>
REMOVED
Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.
If you go back a page, you can go forward :p
then it would be
I think, Probably wrong.HTML Code:<form> <input type="button" value="Go Forward" onclick="history.forward(1)"> </form>
Last edited by iRoss; 15-05-2005 at 10:13 AM.
REMOVED
Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.
Go Back
Go forwardPHP Code:<A HREF="javascript:history.go(-1)">Back</A>
If that doesnt work for forwardPHP Code:<A HREF="javascript:history.go(1)">Forward</A>
PHP Code:<A HREF="javascript:history.go(+1)">Forward</A>
Want to hide these adverts? Register an account for free!