Article written

  • on 13.05.2011
  • at 07:00 AM
  • by TYPELiFE

Google Images Frame Breaker 1

May13

While definitely not considered a best practice, and it is definitely looked at as not the whitest of hat by some, the technique of breaking out of the Google Images “frame” (modal window over your website showing just the image) and showing the entire content of your website is becoming more and more popular. I’m going to say it’s OK, since both Facebook and Google employ this technique.

If you find yourself with the need to implement a frame breaker (which does work on “frames” from other websites, such as HootSuite and Digg) it’s fairly simple, you just need to add the following JavaScript code to your <head> tag:

<script type='text/javascript'>if (window != top) top.location = self.location</script>

subscribe to comments RSS

There is one comment for this post

  1. Lex says:

    Nice. You could, conversely, argue that Google's use of frames to effectively "own" your image content is not exactly best practice… so show them no mercy. ;)

Please, feel free to post your own comment

* these are required fields

Internet Marketing Strategy is powered by WordPress and FREEmium Theme.
developed by Dariusz Siedlecki and brought to you by FreebiesDock.com