Solved

frame buster workaround

Posted on 2004-04-19
7
322 Views
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
--
0
Comment
Question by:japoneix
7 Comments
 
LVL 30

Accepted Solution

by:
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.
0
 
LVL 3

Expert Comment

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

Kind regards
0
 
LVL 30

Expert Comment

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

Expert Comment

by:jaysolomon
ID: 10868308
third is correct

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

0
 
LVL 1

Expert Comment

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

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

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

Suggested Solutions

Title # Comments Views Activity
Placeholder text not disappearing in Contact Form 7 2 23
Else condition 9 23
Html form and modal / img src -problem 3 28
Html Newline 7 20
This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), 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…

791 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