Remove Browser Frames Imposed by Social Networking Sites

Several social networking sites have taken up to using Frames to display external content, several sites like , Stumble Upon, Digg with the help of Diggbar make use of frames to load external content, even tinyurl services like make use of frames to display content to users.


These changes are good for the social networking sites themselves, however the same cannot be said for blog and website publishers, since loading content from a site in frames or frames definitely hurts.

If you take a look at the screenshot above, due to the embedded frame, the whole branding of the site changes, in-fact the top of the page also eats up precious screen space from the website.  Daniel from Daily blog tips also takes a detailed look at why frame wrapping of external content is not good for the publishers.

If you are a user, there are several plugins that will help you to remove the frames imposed by social networking sites by using one of the several plugins to address this issue. You can download Frame Buster, No More Frames or No Frames [via] plugin to address this issue.

Once you have installed one of the plugins, it will automatically load the parent page of your website when it is loaded in a frame. Take for example this shortened URL using, loading it will redirect content to our main site.

If you are not using a WordPress and still want to remove the frames used by social networking site, you can add the simple JavaScript code given below to the header of your website.

   1: <script type="text/javascript"> 
   2:     if (top.location!= self.location) {
   3:         top.location = self.location.href
   4:     }
   5: </script>

Adding this code snippet to the header of your website should ensure that your URL will get loaded whenever it is embedded inside of a browser frame.

As a webmaster it is highly imperative that you brand yourself to the end users, however social networking changes like these can definitely affect you, though you may not be able to change the way the social networking sites work, you can definitely use a workaround to address this issue.

What are your thoughts about the frame based browsing being implied by social networking sites? Do you think it is correct? Will you make changes to your website, so that it get rids of frame based browsing? Do let us know through your comments.

Published by

Keith Dsouza

I am the editor-in-chief and owner of Techie Buzz. I love coding and have contributed to several open source projects in the past. You can know more about me and my projects by visiting my Personal Website. I am also a social networking enthusiast and can be found active on twitter, you can follow Keith on twitter @keithdsouza. You can click on my name to visit my Google+ profile.