Forum Moderators: open

Message Too Old, No Replies

frame problem

         

script33

7:12 am on Jul 28, 2007 (gmt 0)

10+ Year Member



i see this blog today at blogspot
it has an ifram:
<iframe frameborder="0" height="550" width="550" src="http://www.metacafe.com/"></iframe>

but when i see weblog i redirected to www.metacafe.com

why it happen?

[edited by: engine at 9:27 am (utc) on July 28, 2007]

thecoalman

11:12 am on Jul 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There's javascript you can use to break a page out of frames.

script33

12:17 pm on Jul 28, 2007 (gmt 0)

10+ Year Member



plz explain more...
i'm amateur

thecoalman

1:09 pm on Jul 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You can insert javascript into a page, the javascript will determine if the page is framed. If it is then it will reload the page without the frame. I can't give a better explanation because I don't know a lot about javascipt, that's gist of it though.

There's many examples if you do search, here's one. Place between the head tags of page then try and frame it:

<script language = javascript>
if(top.location!= document.location.href) {
top.location = document.location.href;}
</script>

script33

2:45 pm on Jul 28, 2007 (gmt 0)

10+ Year Member



i insert your script but it dont work

my blog redirected to frame page yet...

[edited by: encyclo at 2:47 pm (utc) on July 28, 2007]

encyclo

2:51 pm on Jul 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It will be the other site which will be using the code, stopping you from framing it.

There is no reliable method of forcing a third-party site into a frame when the other site owner is using a Javascript "frame-buster" such as the one above.

script33

8:14 pm on Jul 28, 2007 (gmt 0)

10+ Year Member



plz give me a "frame-buster" for example...

when a ifram can redirect the page to the fram src?