i see this blog today: yamobile.blogspot.com/ it has an ifram: <iframe frameborder="0" height="550" width="550" src="http://www.metacafe.com/"></iframe> but when i see weblog i redirected to www.metacafe.com why it happen?
That is detection code in metacafe.com detecting that it is in a frame and busting itself out... Generally speaking putting someone else's entire site inside a iFrame is a bad idea, and a LOT of websites don't approve of doing that, and have javascripts that do exactly what you are seeing here.
What deathshadow is saying is that this is a measure taken by Web site owners to prevent others from stealing their site's content by making it look like another Web site. If you want a script that can do this for your own site, look at the script they use on theirs and try to make it work on yours. I'm away from home right now, otherwise I'd give you mine. (Deathshadow, can you loan him one of yours?)
<script type="text/javascript"><!-- if (top.location!=location) { top.location.href=document.location.href; } --></script> Code (markup): good as always I think - been a while since I've worried about that. Sigh, you know, every time I see the thread title I keep thinking I've been mysteriously transported to an auto repair forum.