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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now