DiLu790 wrote:
> Hello, someone's framed one of my pages within their site. Although it may very
> well be a compliment, I don't like it considering the possible repercussions it
> may have on my great rankings at Google.
>
> I dug up the following which DOES work:
>
> <script language="Javascript">
> <!-- hide this from non JavaScript Browsers
> if (window.location != top.location)
> {top.location.href=window.location}
> // -->
> </script>
>
> But might there be a way to redirect the page to a different page (which in my
> case would be a blank page) if it's being framed? Or is that impossible?
>
not sure if this will do what you want but you can put a meta tag to
redirect in the <head> section of the page, this may just reload inside
the frame, I aren't sure about that, never use frames can't stand the
pesky little creatures.
<META http-equiv="refresh" content="3;URL=http://www.foo.com/bar/index.htm">
Hope that's correct, haven't used it manually for a long time.
that will redirect them to
http://www.foo.com/bar/index.htm in 3
seconds, but be warned that all browsers may not honor the redirect,
either by user preference or design, they SHOULD but just in case you
should put a link as well like
<a href="http://www.foo.com/bar/index.htm">If you are not redirected in
3 seconds click here</a>
~Cameron