Forum Moderators: martinibuster

Message Too Old, No Replies

Frame Busing Code? What is it?

Is it safe to use and will it improve performance?

         

edd1

3:41 am on Sep 27, 2005 (gmt 0)

10+ Year Member



I don't understand what frame busting code is? Does it go in the head section in the site template? Will inserting it make a small or a big difference?

Can someone be really, really kind and explain what it is, what it does and if Google is happy for you to use it.

Visit Thailand

4:31 am on Sep 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Frame busting code does go into the head section of a webpage.

It is used to break your page out of frames.

So if a site features your page within a frame on its site then the code busting is supposed to break out of the frame so the page is displayed normally.

I cannot see how this would affect AS earnings at all, and has nothing to do with Google as such.

bumpski

10:42 am on Sep 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use frame busting code.

It affects Google Images for instance; when someone clicks on an image to go to your site, POP, the Google frame disappears! But the back button should still work.

The Ask Jeeves frame will disappear as well when someone clicks on your site.

So you do want to consider how your visitor will react to these little surprises.

My site(s) have been framed by some pretty nasty sites, so it is good to see, POP, the bad site is gone!

Freedom

11:21 am on Sep 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you paste your frame busting code here? I just pasted mine and want to compare it with your's.

Nikke

12:23 pm on Sep 27, 2005 (gmt 0)

10+ Year Member



<script type="text/JavaScript">
if (window!= top) top.location.href = location.href;
</script>

ann

12:28 pm on Sep 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here is the one I picked up here on WW. I place it just above the </head> tag:
<script language="JavaScript1.1"
type="text/javascript"><!-- // hide from old browsers
if (parent.frames.length > 0) top.location.replace(document.location); // Escape from any referring site's frame, but preserve one-click "Back". -->
</script>

I have this on all my sites and pages, seen no trouble at all.
Ann