Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Mar 2003
    Location
    Beddau, Mid Glamorgan, Wales
    Posts
    289
    Thanks
    0
    Thanked 0 Times in 0 Posts

    'Go Back' button (FP 2002)

    I've tried searching, but have not found an answer.

    I would like to have a link on a page that will go back to the page the user has just come from, rather than a specific page.

    Can do?

    Tony
    Regards,

    Tony
    [s] [/s]
    www.SylviArtist.com

  2. #2
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: 'Go Back' button (FP 2002)

    Hi Tony

    There are various options. This one provides you with a specific button:

    <form>
    <input type="button" value="Go Back" onClick="history.go(-1)">
    </form>


    or you could go for this which is a text only option:

    Go Back

    Enjoy <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>
    Jerry

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: 'Go Back' button (FP 2002)

    Those links require JavaScript, so there's no point displaying them if the user isn't allowing script to run. As an amended version of Jerry's suggestion, the following link will only be visible if scripts are enabled:

    <code><script type="text/javascript">document.write('Go Back');</script></code>

    Added: You might add this code using Insert > Web Component > "Advanced" > HTML (I don't recall the exact name). This ensures that FP will not try to improve on it.

  4. #4
    3 Star Lounger
    Join Date
    Mar 2003
    Location
    Beddau, Mid Glamorgan, Wales
    Posts
    289
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: 'Go Back' button (FP 2002)

    Thank you, Jerry and Jefferson.

    I found Jazza's first suggestion worked fine.

    Your prompt help much appreciated!

    Tony.
    Regards,

    Tony
    [s] [/s]
    www.SylviArtist.com

Posting Permissions

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