Results 1 to 5 of 5
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Link to Parent Page (98)

    How can I create a hyperlink to the Parent Page? That is, NOT to a specific page but to the one that linked to the current page. Thanks, Andy.

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Link to Parent Page (98)

    Would that be a Back Button ?

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Link to Parent Page (98)

    Yes - a Back Button

  4. #4
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Link to Parent Page (98)

    Does the link give you what you want?

  5. #5
    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: Link to Parent Page (98)

    JavaScript is the easiest way, but not everyone wants to enable JavaScript these days. A harder way, and one which might or might not be enabled by your host, is to use server side includes (SSI). Note that you would need to remove the spaces in the comment tags in order to use this code:

    <hr>Well, it appears that you have just arrived from "><!- -#echo var="HTTP_REFERER"- ->.<hr>
    You can see the results by visiting this page. As a plus, no one can see your code: like ASP, all the magic is done server side and only the results are delivered to the user. One disadvantage is having to rename all the files with .shtml or .sht extensions in order to trigger the SSI functionality. A bigger disadvantage, perhaps, is that no referrer information is provided by a favorite, so if people use bookmarks to visit internal pages in your site, the link will be invalid.

    Oh well, maybe someone will find this useful one day...

Posting Permissions

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