Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: Re-directing access within Frames

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.