cloudy cloudy

Author Topic: Break frames  (Read 2241 times)

0 Members and 1 Guest are viewing this topic.

Offline carterlake

  • Tom Chaplin
  • Posts: 2,273
  • Carter Lake, Iowa USA
    • Carter Lake, Iowa Weather
Break frames
« on: January 23, 2005, 11:19:20 PM »
Here's a bit of code you might consider adding to a page or pages of your site... it breaks frames that other sites may put your site in when viewing.

I find it really annoying when sites build their traffic on other sites... then frame them for visitors to view.

Code: [Select]
<head>

<script language=javascript type="text/javascript">
<!--
if (parent.frames.length)
  top.location.href= document.location;
// -->
</script>

</head>

Of course, your site can't be built with frames for this to work.

WD; Davis VP2 6153; Quickcam for Notebooks Pro; Boltek w/ Nexstorm; GRLevel3; Live NOAA radio