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
- Re-directing access within Frames - Brian Vozza April 24, 2001 at 18:49:38
- Re-directing access within Frames - Daniel James January 07, 2000 at 16:00:36
- Re-directing access within Frames - Charles Hill June 08, 1999 at 08:52:44
- Re-directing access within Frames - Bob Langdon February 09, 1999 at 10:44:11
- Re-directing access within Frames - Cris Perdue December 11, 1998 at 20:10:43
- Re-directing access within Frames - Antti N�yh� November 24, 1998 at 08:04:47
- Re-directing access within Frames - Marcel Post November 02, 1998 at 02:46:13
- Re-directing access within Frames - Jim Schowalter November 01, 1998 at 20:02:22
- Re-directing access within Frames - Anders Lund October 19, 1998 at 16:23:29
- Re-directing access within Frames - Duif Calvin October 08, 1998 at 06:06:34
- Re-directing access within Frames - Kevin McNamara October 07, 1998 at 10:58:20
- Re-directing access within Frames - Kevin McNamara October 06, 1998 at 13:14:37
- Re-directing access within Frames - Remko Coltof October 02, 1998 at 02:44:49
- Re-directing access within Frames - Iain Hunneybell September 30, 1998 at 18:32:40
- Re-directing access within Frames - Charles C Martin September 23, 1998 at 03:06:49
- Re-directing access within Frames - Rachel Hodgson September 19, 1998 at 16:43:49
- Re-directing access within Frames - Iain Hunneybell September 19, 1998 at 16:11:41
- Re-directing access within Frames - Mike September 19, 1998 at 06:10:08
- Re-directing access within Frames - Kevin McNamara September 14, 1998 at 08:05:31
- Re-directing access within Frames - walter perry September 09, 1998 at 15:23:33
©2018 Martin Webb