471,337 Members | 795 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

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
  1.  
  2. <SCRIPT LANGUAGE="JavaScript"> 
  3. <!-- Begin 
  4. if (window == top) top.location.href = "default.htm"; 
  5. // End --> 
  6. </script>
  7.  
  8.  
Aug 23 '07 #1
2 1108
pbmods
5,821 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

reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.