homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Killing a frame killer

 6:13 am on Dec 6, 2000 (gmt 0)

if(top.location != document.location)
top.location = document.location;
This is a handy code to jump out of a frame. One of my clients uses it, and I need to disable this function. Is there a way to do this with some code on my frame



 10:21 am on Dec 6, 2000 (gmt 0)

littleman, I don't think there can be such a code. It would open the door to recursive loops and potential security hazards, by letting you overwrite someone else's page.

Edited by: tedster


 1:18 am on Dec 7, 2000 (gmt 0)

Well, that's not good! I actually had to pull the clients pages through my server and strip out the code before I hand it off in the frame. How's that for an elaborate work around?


 12:33 am on Feb 12, 2001 (gmt 0)

control freak.


 1:44 am on Feb 12, 2001 (gmt 0)

>>control freak

LOL..and clients pay $ to webmasters to take control, that's what keeps us in business. They give us control when they need us, and we're happy to help.

Which brings up a question. I've seen a lot of graphics sites that I suppose get pulled up in a lot of frames, that have a link saying "if you're trapped here in a frame, click here to break out of it."

Can it ever cause problems to click on those, beyond possibly crashing IE?

IE is still not overly fond of javascript, I crash regularly from the popup banners on a particular web host's sites (different issue, but it's still kind of IE related).

Worst thing that ever happened to me was getting trapped on a site and having a graphic on it set itself as wallpaper on my computer - I actually got frantic over it.


 2:01 am on Feb 12, 2001 (gmt 0)


you could try this free little app from [mantadb.com...] (Sorry folks, IE only).

The original purpose behind the program is to index your history and make it searchable. Quite usefull. As a bonus it includes a frame-buster button which has not crashed IE for me yet.

Free app, I'm not affiliated..



 2:09 am on Feb 12, 2001 (gmt 0)

Thanks Woz, I will take a look...I am one of these people that uses the browser that "came with" and I have to admit I even use the MSN start page - because it "came with" and I never bothered to change it.


 5:46 am on Feb 12, 2001 (gmt 0)

>control freak.


 8:22 am on Feb 12, 2001 (gmt 0)

Exactly littleman, Microsoft is controlling me by default. LOL..that's the way they do it!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved