Results 1 to 3 of 3

Thread: Help with getting back to a Framed content page

  1. #1
    Join Date
    Oct 2005
    Location
    Liverpool, UK
    Posts
    87
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Help with getting back to a Framed content page

    Hi,

    Assuming the user has clicked off to another page (which then has a further 'next' page), is there a way I can point the user 'back to' the original page if it was in a Frame?

    I appreciate I could use the method:
    a href="javascript:history.go(-2);"

    - though this will not work correctly if the user has two'ed & fro'ed on the divert page as the '-2' may not then be the original page.

    I guess what I'm asking is, how do I address a specific 'back to' via a href ?
    i.e specific call of Frame within an html page - rather than the default Frame when first visited?

    a href="main_page.htm[specific frame page.htm]"

    Thanks in advance!

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Other than history.go(), there is no client-side way of sending the user backward. I suggest that you store the user's history in some way, possibly in a cookie or session, and use that to judge what "back" is.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If your object is not sending the user 'back', but rather sending the user to a page in a frame of a frameset, you could make up another, nearly identical, frameset that has the page you want as the src of the frame in question and link to that frameset.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •