Subject:
|
Re: possible to break out of someone's frame?
|
Newsgroups:
|
lugnet.publish
|
Date:
|
Sun, 23 May 1999 15:37:40 GMT
|
Reply-To:
|
cjc@%nospam%newsguy.com
|
Viewed:
|
902 times
|
| |
| |
Todd Lehman <lehman@javanet.com> wrote:
> That would be if you wanted to display, say, an error page to the user -- or
> some other info page -- if the linker linked you into a sub-frame. OTOH, if
> you wanted instead to simply to reload the target page at the top level
> silently, you could do this:
>
> <SCRIPT LANGUAGE="JavaScript"><!--
> if (top.location != self.location) top.location = self.location;
> //-->
> </SCRIPT>
>
> But IIRC, last fall when I did that on a couple pages, several people
> reported that it caused MSIE to go into an infinite reload loop. :-(
Thanks! This worked fine with IE5. I will test it with IE4 after
next week. On vacation next week. :)
--
Lego Shop at Home: 800-835-4386 (USA) / 800-267-5346 (Canada)
www.lugnet.com/news/ - A great new resource for LEGO fans worldwide
|
|
Message is in Reply To:
| | Re: possible to break out of someone's frame?
|
| (...) Mike, It's possible to kludge up a frames-detector-and-breaker via client-side JavaScript embedded in your HTML pages. It won't protect you from frames- abuse 100% of the time, but I suppose that most visitors running a browser that supports (...) (26 years ago, 21-May-99, to lugnet.publish)
|
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|