05
Jun
Break out of frames using JavaScript
I thought frames went out of style a decade ago but apparently everyone feels the need to duplicate the Digg Bar. I don’t trust these framed services so I choose to use a JavaScript snippet that prevents my site from being in someone else’s frame.
The JavaScript
if(top.location != self.location) {top.location = self.location;}Don’t let your site be framed in! Use this JavaScript snippet!
via davidwalsh.name
I hate the Digg bar. I really really do. Thank you David Walsh.