1. Welcome to Baptist Board, a friendly forum to discuss the Baptist Faith in a friendly surrounding.

    Your voice is missing! You will need to register to get access to all the features that our community has to offer.

    We hope to see you as a part of our community soon and God Bless!

A HREF= then what?

Discussion in 'Computers & Technology Forum' started by Ingo Breuer, Apr 9, 2003.

  1. Ingo Breuer

    Ingo Breuer Member

    Joined:
    Oct 4, 2001
    Messages:
    152
    Likes Received:
    0
    On my website at SolidRockFaith.com I have one page that can be accessed from a number of other pages. Now I want to create a back button that takes the visitor back to the previous page. So how do you do that when the previous page can be one out of five referring pages?
    A HREF=" refering page"
    Basically it needs to work like a browser's back button.
    Thanks for your help in advance.
     
  2. Gina B

    Gina B Active Member

    Joined:
    Dec 30, 2000
    Messages:
    16,944
    Likes Received:
    1
    READ THIS

    You'd be better off just putting a list of your pages on the bottom of each page and letting them hit the back button on their browser otherwise.
    Gina
     
  3. ijohn19

    ijohn19 Guest

    To do that you would need this code :
    after the
    a href=
    put in:
    "javascript:history.go(-1)"


    As you can see this is a simple bit of javascript. What this simply says is that by clicking on this link, the user will be directed to the last page in their history, which is, whatever page they were at before the current page, aka the referring page. Incidentally, you could replace the -1 w/ -2, -3, etc. and it would jump you back that many pages in the history.

    [​IMG] hope this helps
     
Loading...