frame buster workaround

Posted on 2004-04-19
Last Modified: 2007-12-19
How do I get a page with a 'frame buster' opened inside an IFRAME or FRAMESET?

target's onload attribute:
if (self !=top) top.location = location
Question by:japoneix
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 30

Accepted Solution

third earned 125 total points
ID: 10865129
i don't think there's a workaround with that. the only workaround i have on my head is, you have to ask permission to the owner.

Expert Comment

ID: 10867153
I'm not a Javascript Guru, but maybe it is possible tot redefine the "top" object ?

Kind regards
LVL 30

Expert Comment

ID: 10867350
nope. can't be done, AFAIK.
LVL 16

Expert Comment

ID: 10868308
third is correct

...and i am glad that you can't b/c i use it in every site i develop regardless


Expert Comment

ID: 10888496
Try this out, it works fine for me. Cheers.

<script language="Javascript">
if (top.location!= self.location) {
top.location = self.location.href

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (, we'll extend the program by adding a depth-…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question