- Forums
- Javascipt
- How To Avoid Google Images Frame And Close It Immediately
this is an old post i wrote when google images was using frames to display my images and i use a frame buster because other website were also using my content as their own [818], Last Updated: Sat May 18, 2024
javascripts genious
Fri Feb 20, 2009
0 Comments
762 Visits
hay thanks for showing me the framebuster with javascript,
i have this better simple one,
you can use this code to automatically close the top portion of the page when someone comes to your site from a search engine and they come to only view the image. so lets say i have a picture that come from a searched word from google images so i can close the top frame with this code:
<script language="JavaScript" type="text/javascript">
if (top.location != self.location) top.location = self.location;
</script>
thats it, just make sure you put it in between the <head> and </head> tags