Results 1 to 6 of 6

Thread: useing back button...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448

    useing back button...

    how do i make a link that does the same thing as your back button?
    Last edited by Muk108; Apr 2nd, 2002 at 07:33 PM.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Code:
    <a href="javascript:history.back()">Click here to go back</a>
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448
    thanks

  4. #4
    Addicted Member sotusotusotu's Avatar
    Join Date
    Aug 2001
    Location
    Plymouth, England
    Posts
    158
    also you can add the amount steps you would like to back in.

    Just in case you didn't know.



    <a href=javascript:history.back(-2)>Back</a>
    Living a Lie, Timmy

  5. #5
    Behemoth
    Guest
    what's the difference between that and

    a href=javascript:history.go(-2)

    which is how I was taught...

  6. #6
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    I was taught history.go as well.

    history.go(-2) is the correct way to do this.

    history.back() was originally designed to go to the previous page and not take a parameter where as history.go was designed to go to a page from the relative position using a parameter.
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width