Forum Moderators: open

Message Too Old, No Replies

Displaying main frameset only

How do you prevent Google showing an individual frame?

         

johnser

7:43 pm on Aug 25, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi
I have a frames-based site - www.widgets.com/index.html that is ranking well. (Index.html is the frameset)

However index.html's main content frame is body.html and this is also displayed (in addition to index.html) for certain keyphrases which is my problem.

When users click on the body.html page they just see the internal page and not the whole frameset. I know there are various framebuster techniques to use but that is not what I need.

I want Google to spider the content of body.html but NOT to display it - Just its parent frameset. I don't want to use <nocache> or <noarchive> as I understand Google frequently does sweeps of sites using these tags to remove cloakers.

Any clue on how I do this?
Thanks in advance
J

Hemsell

8:48 pm on Aug 25, 2002 (gmt 0)

10+ Year Member



put a javascript to see if body is inside parent, if not then location becomes index.htm

It is an option anyway.

or if refering page url != to index.htm then location becomes index.htm

Lots of examples of that on the web.

I have a two liner on my site that does the opposite, jumps frames. i do not like ask jeeves and hotmail framing me :)

Todd

johnser

9:02 pm on Aug 25, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Todd
Could you elaborate slightly on the second option? Perhaps even stickymail me an eg?
J

Hemsell

11:32 pm on Aug 25, 2002 (gmt 0)

10+ Year Member



I do not know how to do the second option, it is just psuedocode.
Here is the first

Put in your body.html:

<SCRIPT LANGUAGE="javascript">
if (self==parent)
{
window.location.href="index.html";
}
</SCRIPT>

That is a combo of two I found on the net. I prefer it to the way either of the originals was written.

[edited: Added the correct filenames for his particular situation[/edit]