Scott
06-21-2002, 07:29 PM
Do you like it when another site loads your site in a frame? Do you want to stop that? I have a simple code that we use and thought some of you other webmasters would like to use it also.
Put this right before the </head> tag.
<script language="JavaScript"><!--
if (self != top) {
if (document.images)
top.location.replace(window.location.href);
else
top.location.href = window.location.href;
}
//--></script>
This wil stop sites from loading your site in a frame.
Put this right before the </head> tag.
<script language="JavaScript"><!--
if (self != top) {
if (document.images)
top.location.replace(window.location.href);
else
top.location.href = window.location.href;
}
//--></script>
This wil stop sites from loading your site in a frame.