By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

Using history in frameset

P: n/a
Ian
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="javascript: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
ia*@hubling.com
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
VK
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.history.go(-1)
it will work from any frame no matter where the focus is.

Ian <ia*@hubling.com> wrote in message
news:44*************************@posting.google.co m...
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="javascript: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
ia*@hubling.com

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.