Forum Moderators: open

Message Too Old, No Replies

iframe top!= self issue

iframe top!= self issue

         

kirang

12:25 pm on Jul 25, 2007 (gmt 0)

10+ Year Member



Hello,

I am using iframe like this :

<iframe frameborder="0" scrolling="no" height="300" width="300" name="myFrame" src="http://www.test.com/test.html"></iframe>

Now the issue is that the domain "test.com/test.html" page contains the javascript code as --

<script language="javascript">
if(top!=self)
top.location.href = "http://www.google.com";
</script>

So it is redirecting my whole site to new domain - google.com

Can i stop this by any how?

Thanks in advance.

daveVk

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

WebmasterWorld Senior Member 10+ Year Member



This script is known as "frame breaker" so you are after a "frame breaker breaker"?

DrDoc

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

WebmasterWorld Senior Member 10+ Year Member



Now the issue is that the domain "test.com/test.html" page contains the javascript code as --

<script language="javascript">
if(top!=self)
top.location.href = "http://www.google.com";
</script>

Simple! Just edit the page to remove that code :)