467,146 Members | 1,329 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,146 developers. It's quick & easy.

Getting rid of iframes from Google search results

I was having problems with google, when someone would search for one of my pages the iframe pages would pop up. So I attempted to fix this problem by adding the javascript below to all of my iframes. I had to do a bunch of stuff like putting my default page in the Pages folder because i couldn't get to the root directory with the script below. Now when you search and click on the results itll take you to the default.htm in the Pages folder but the back button on top isn't working properly(It works fine on Mozilla but doesn't work IE). Can anybody give me tips on what to do. I really dont wanna change the entire page to not have iframes, but i will if this is the only option.

Expand|Select|Wrap|Line Numbers
  2. <SCRIPT LANGUAGE="JavaScript"> 
  3. <!-- Begin 
  4. if (window == top) top.location.href = "default.htm"; 
  5. // End --> 
  6. </script>
Aug 23 '07 #1
  • viewed: 1032
2 Replies
Expert 4TB
Changed thread title to better describe the problem (did you know that threads whose titles that do not follow the Posting Guidelines actually get FEWER responses?).
Aug 23 '07 #2
sorry for not following guidelines... do you have any advice for my situation?
Aug 23 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

25 posts views Thread by altemurbugra@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.