Forum Moderators: open
Several of our competitors started framing my site, so I added the below script to the homepage.
Within a week of this script being added, the page lost a few top 10 rankings.
Now I know there are many variables that go into ranking, and it could be coincidence - but since I'm not sure - thought I'd ask the experts if this could cause a penalty.
Thanks for the help.
<SCRIPT LANGUAGE="JavaScript">
<!--
setTimeout ("changePage()", 0);
function changePage()
{
if (self.parent.frames.length!= 0)
self.parent.location=document.location;
}
//-->
</SCRIPT>
I don't know about your method, but I've used this frame-buster for years with no ill effect:
<script language="JavaScript1.1" type="text/JavaScript"><!-- // hide from old browsers
if (parent.frames.length > 0) top.location.replace(document.location); // Escape from any referring site's frame, but preserve one-click "Back". --></script>