Once, I encountered a situation where my blog would display a frame or plugin when accessed from a particular website that I pinged. Wanting to remove this frame after 30 seconds, I managed to do so. However, the code I used resulted in my blog continuously refreshing every 30 seconds.
My goal is to break the frame within 30 seconds without the need for the continuous refreshing of my website.
<script language="JavaScript">
function eliminateFrame()
{
top.location.replace(self.location);
}
if (top.frames.length > 0)
{
setTimeout('eliminateFrame()',30000);
}
</script>
I hope the explanation was clear despite any language barriers.