Frame-busting

By 26 Jul 2010 | Comment
Here's some code you may find useful if your website is stuck in an iframe inside someone else's site:
<script>
if(top.location != location) {
	top.location.href = document.location.href;
}
</script>
This used to be an option for you to get better use of Google image search, but they have now changed their user interface to make it much more likely for the user to actually visit your site properly.


Comments

It's quiet in here...Add your comment

Web Development Survey!
Which web technologies would you like to see the back of, and why?