Forum Moderators: open

Message Too Old, No Replies

Frame Breakers Continued

Continuation of frame breaking scripting

         

The Contractor

12:48 pm on Jul 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Every post/thread on this subject is too old and the system will not allow a reply. I have used a frame breaking bit of scripting to succesfully break out of frames in the past.

There are a couple of decent threads on this subject including these on WebmasterWorld that can be found
here [webmasterworld.com] and here [webmasterworld.com].

I found a site today (snapdotcom) that is still able to frame via PHP/JavaScript and was wondering if anyone was able to break out of the frame from them.

RonPK

4:13 pm on Jul 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This one gets my site's homepage out of their iframe:

if (top != self) top.location.replace('./')

The Contractor

7:02 pm on Jul 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hmm...doesn't work for me

The Contractor

7:27 pm on Jul 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



figured out one that works:

<SCRIPT LANGUAGE="JAVASCRIPT" type="text/javascript">
if (top!= self) top.location.href = location.href;
</SCRIPT>

which is just a slight variation of what I used before