How to disable iFrame encapsulation
It's a common trend to encapsulate sites in iframes, this is done by DiggBar and a lot of others.
The problem with these toolbars are following:
The solution is pretty easy thought, simply add this to your header section: <script type="text/javascript">
if (window != top) {
//Inside an iframe check
top.location.href = location.href;
}
</script>
This checks if your site is inside an iframe - - if it is, it will change the top window's location to your site. 4 comments so far
Post a comment
Commenting on this post has expired.
|
Blog labels |