SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    E-business guru Eirik's Avatar
    Join Date
    Nov 2000
    Location
    Oslo, Norway
    Posts
    413
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi again,

    It's come to my attention that the javascript code I've used for years to make back-links doesn't work. At least not for a friend of mine which uses IE 5.0. The code is as follows:

    <A HREF="javascript:back()">Back</A>

    Does anyone know why this doesn't work for IE 5.0, or more importantly, what code I can use to get a comp. back button.

    Thanks in advance !
    Sincerely,

    Eirik Johansen
    Netmaking AS

  2. #2
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, you're right! That surprised me...

    Anyway, this ought to work (does for me with IE 4.0):

    Code:
    <a href="javascript:history.go(-1)">Go BACK!</a>
    Enjoy! Two pages back is "-2" and one page forward is just "1" -


Bookmarks

Posting Permissions

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