About

Reviews, comments and the occassional rant on varied topics that include web2.0, social networking, movies, web development, music and more.
Kevin Fair
Web Developer

Find Me On:

Facebook

LinkedIn

Delicious

Twitter

friendfeed

last.fm

YouTube

Plaxo

DIGG

Flixster

blippr

Meta

Recent Posts

Community/Facebook

Already a member?
Login
Login using Facebook:

RSS Delicious Bookmarks

RSS Twitter

What I'm Listening To

Tags

apture backtype bestof blackberry blog blue planet canada christopher guest cnn digg facebook frames Google hudson hawk iTunes kyte.tv language last.fm mental health Movies music new york times online media oscars photos planet earth rant rogers ROM security skymall smartphone songza spinal tap strike television telus the universe touchgraph trends twitter video visualization webdev wordpress

Chat

I’m No Longer Being Framed!

As I mentioned in an earlier post, these browser bars that sit atop pages that you click to from social networking sites drive me crazy. I can’t do anything about the pages that I’m going to, but I am doing something about the pages that I create.

There is a small piece of javascript code that I’ve now placed at the top of this page which detects whether my page is being loaded in a frameset and busts out of it if it is. This code is below.

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

I was in the habit of adding this code to every site I built for years, but got out of the habit because frames went away. Now I think I’ll remember to do so from now on.

Share and Enjoy:
  • Twitter
  • Facebook
  • del.icio.us
  • Posterous
  • Digg
  • StumbleUpon
  • Google Bookmarks
  • Suggest to Techmeme via Twitter
  • Slashdot
  • HelloTxt
  • Ping.fm
  • email
  • Print
Comments
blog comments powered by Disqus