Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 332
  • Last Modified:

frame buster workaround

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
japoneix
Asked:
japoneix
1 Solution
 
thirdCommented:
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
 
ehoutCommented:
I'm not a Javascript Guru, but maybe it is possible tot redefine the "top" object ?

Kind regards
0
 
thirdCommented:
nope. can't be done, AFAIK.
0
 
jaysolomonCommented:
third is correct

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

0
 
tomwoodsCommented:
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now