471,627 Members | 1,213 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

google search iframe

I have an iframe on one of the pages. I use it to not have to refresh the entire page when someone clicks on a link. However I put the website on google and when you search for the website the iframes come out. How do i stop the iframes from showing up on the google search? the website is escamillalaw.com.... google law office of cesar escamilla and youll see what im talkin about.
Aug 23 '07 #1
2 5655
Ok i kinda fixed the problem... on all my iframe pages i applied this code

Expand|Select|Wrap|Line Numbers
  1. <SCRIPT LANGUAGE="JavaScript"> 
  2. <!-- Begin 
  3. if (window == top) top.location.href = "default.htm"; 
  4. // End --> 
  5. </script> 
However this created another problem... the back button on my internet explorer doesn't work but it works fine on mozilla. any suggestions on how to fix this?
Aug 23 '07 #2
7,435 Expert 4TB
I'm not a javascript guy but minor correction. This should be:
<script type="text/javascript">
Aug 23 '07 #3

Post your reply

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

Similar topics

2 posts views Thread by Peter Morris [Droopy eyes software] | last post: by
3 posts views Thread by Lakshmi Narayanan.R | last post: by
4 posts views Thread by gwtc | last post: by
5 posts views Thread by ajd335 | last post: by
5 posts views Thread by cj | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | 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.