Welcome to WebmasterWorld Guest from 100.25.214.89

Forum Moderators: open

Message Too Old, No Replies

iframe top!= self issue

iframe top!= self issue

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

New User

10+ Year Member

joined:May 10, 2007
posts:8
votes: 0


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.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 3, 2005
posts:1585
votes: 0


This script is known as "frame breaker" so you are after a "frame breaker breaker"?
7:22 am on July 28, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


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 :)

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members