Remove Browser Frames Imposed by Social Networking Sites
By on April 7th, 2009

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 ow.ly make use of frames to display content to users.

owly_frame_browsing

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 ow.ly, 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.

Tags: , ,
Author: Keith Dsouza Google Profile for 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.

Keith Dsouza has written and can be contacted at keith@techie-buzz.com.
  • http://stevejamesson.com Steve

    Thanks for the post. I understand why social sites use frames, however, facebook in particular already launches the external link into a blank window. So by using their frame in a blank window, I think they’re going overboard by keeping my sites in a frame. I wish they’d stop, but what can we do, other than use workarounds?

 
Copyright 2006-2012 Techie Buzz. All Rights Reserved. Our content may not be reproduced on other websites. Content Delivery by MaxCDN