You are here: irt.org | BBS | Re: A slightly trickier one... [This BBS is closed]
Posted by Martin Webb on July 21, 1998 at 15:06:07:
In Reply to: A slightly trickier one... posted by Ed W on July 21, 1998 at 09:44:12:
: I have a link to "javascript:history.back ()" on a page. However, I want the text string which represents the link to show the title of the page it is going back to (eg "Back to Links Page"). What makes it even more tricky is that it is a frames page, and I want the title of the previous page in a frame.
: PS the link is not in this frame...
You cannot access the properties or items of the history object. This is a security thingyabob. If you need to do this then you'll need to maintain you own history object that holds all the urls visited whilst your frameset exists. This new history object will need to be stored in the parent frame and updated each time the location of one of the frames changes.
I would recommend not bothering to do this. It'll never work properly. Invoke the 80/20 rule.
Follow-ups:
You are here: irt.org | BBS | Re: A slightly trickier one... [This BBS is closed]