SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Dec 2000
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML: History Links

    Hello,

    What does the link tag look like to create a link that will move the visitor to the second to last page in their browser? I know somewhere in it, it says javascript(history:go;back). but what is it exactly?

    Thanks!
    Corbb O'Connor
    Looking for quality website design or database programming?
    Contact me for more information and a FREE quote!

  2. #2
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.sitepointforums.com/showt...t=history.back will provide the correct answer for you But just for brevity...

    <a href="javascript:history.go(-2)">Back 2 pages</a> (without the space between java and script - the space has been automatically inserted by the forum software)
    My 2 Cents (or is that 2.2 Cents including GST?)

  3. #3
    SitePoint Evangelist
    Join Date
    Dec 2000
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a million!
    Corbb O'Connor
    Looking for quality website design or database programming?
    Contact me for more information and a FREE quote!

  4. #4
    SitePoint Member
    Join Date
    Jun 2001
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can do it as a form button

    <form>
    <input type="button" value="Return to previous page"
    onclick="history.go(-2)"
    </form>

    or an image

    <p><img src="yourimage.gif" width="" height="" alt="Back"
    onclick="history.go(-2)"></p>


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
  •