How To Remove IFrame On Blog

How To Remove IFrame On Blog  -  What is the use of this anti IFrame script?
This anti IFrame script is useless to break the iframe function itself. A simple analogy like this, I have a picture that has been indexed by  Google Image, when others want to see the image or image is usually Google Image will display the image of the search results in the front and the site where the image is on the background. In other words, normally we will not be taken directly to the image site.


Well if you have installed anti-iframe script on your blog template when the image was in the click then it will automatically redirect directly to the URL of your blog. Thus we will also get additional traffic from image search results in Google Image.

Okay, go ahead. How to apply it is quite easy, copy and paste the code below above the code </head>


<b:if cond='data:blog.pageType == "item"'>
<script type="text/javascript">
        if (top.location != self.location) {
          top.location = self.location
        }
</script>
</b:if>

With a little extra conditional tag, the above anti iframe script will only work on the blog post page. therefore, the latest blogger dashboard will not get any errors. Because blogger dashboard shows only index/homepage pages only.


Maybe useful.