-
frames and searchengines
Hi,
I made a website for the band I play in with frames.
I know I know, you'll probably will say, don't work with frames! But I did.
Now I noticed that Google crawled one of the frames in the search results and you will get a page without the menu etc.
Is it something I have to live with or is there a solution for that besides working without frames?
-
Check if the page loads in a frame or not. If not have it reload with the frames and with that requested page in the frame.
Sorry, forgot how to do this.
-
Hi, thanks for your help but I absolutely don't understand what you are talking about.
-
Your page, lets call it page A, should be able to detect if it was loaded inside a frame or not. If page A detects that it wasn't opened within a frame, open the frameset page with the page A loaded in the proper frame.
-
All right, I understand you now. :)
And there is a code for this but you don't remember it right?
I'll try Google for that.
Thanks!
-
I searched around for the code but I can't find it. Does anybody knows where I can?
-
try something like
Code:
if (window.top == window.self){
window.location.href = "TheFramedDocument.html";
window.frames[TheFrameInWhichTheOriginalCrawledDocumentAppears].location.href = "TheCrawledDocument.html";
}
-