Link to home
Start Free TrialLog in
Avatar of japoneix
japoneix

asked on

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
--
ASKER CERTIFIED SOLUTION
Avatar of third
third
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ehout
ehout

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

Kind regards
nope. can't be done, AFAIK.
third is correct

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

Try this out, it works fine for me. Cheers.

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