Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: Re-directing access within Frames, October 19, 1998 at 16:23:29:

You are here: irt.org | About | Feedback | 33 [ previous next ]

Feedback on:
Re-directing access within Frames

Sent by
Anders Lund on October 19, 1998 at 16:23:29:There is a fatal mistake in the article!
You should NEVER test
(self.location == top.location),
as location is a tainted property: if you enede up i a frameset located on another host, it will produce an error! The variable way is correct, but it should be a quite personal one, just for security.
Also, if you end in a foreign frameset, you cannont set "top.location.href", for same reasons. instead, you could write a link to the correct frameset with target=_top, and activate it wite document.links[name].click(),
which does unfortunately not work for some browser versions. Alternative, open a new window withe the correct location...
Anders

Other feedback on 'Re-directing access within Frames' - show all

©2018 Martin Webb