How to Pop Your Site Out of HTML Frames with JavaScript

To prevent your site from being displayed in another site's HTML frames, insert this JavaScript in the <head> section of your website preferably right after your <title> element:

<script language="JavaScript" type="text/javascript">
if (top.location != self.location) top.location = self.location;
</script>