Using history in frameset

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ian

    Using history in frameset

    I'd appreciate some help on this one.

    We use a three-window frameset for online manuals. The "main" window
    contains our document. Since the documents have hyperlinks between
    them for related topics, we have "return" links built into a
    navigation bar on some of the pages. Most of the time these work
    fine, but if the person clicked on the top or left frame before
    clicking on the "return" link, the wrong frame is changed.

    Does anybody know how to alter the script so that only the main
    document window is in focus? Here's the script we use in the page:

    <a href="javascrip t:history.go(-1);">Back</a>

    By the way, this is for a company Intranet - with all users on IE5.5
    as a minimum.

    Thanks.

    Ian Hubling
    ian@hubling.com
  • VK

    #2
    Re: Using history in frameset

    history is a method of window object, so the full syntacs is
    window.history. go(-1)
    (as default parent object 'window' is mostly ommited in scripting to save
    the space)

    discovering the parents makes your task easy; for a named frame "main" the
    command will be:
    top.main.histor y.go(-1)
    it will work from any frame no matter where the focus is.

    Ian <ian@hubling.co m> wrote in message
    news:44e1c94.03 09230932.5a72ca 2b@posting.goog le.com...[color=blue]
    > I'd appreciate some help on this one.
    >
    > We use a three-window frameset for online manuals. The "main" window
    > contains our document. Since the documents have hyperlinks between
    > them for related topics, we have "return" links built into a
    > navigation bar on some of the pages. Most of the time these work
    > fine, but if the person clicked on the top or left frame before
    > clicking on the "return" link, the wrong frame is changed.
    >
    > Does anybody know how to alter the script so that only the main
    > document window is in focus? Here's the script we use in the page:
    >
    > <a href="javascrip t:history.go(-1);">Back</a>
    >
    > By the way, this is for a company Intranet - with all users on IE5.5
    > as a minimum.
    >
    > Thanks.
    >
    > Ian Hubling
    > ian@hubling.com[/color]


    Comment

    Working...