frame redirect question

Gecko

Registered Member
Joined
Feb 8, 2009
Messages
61
Reaction score
69
I am trying to use frames to hide the address of the website i want people to view. I am trying to frame "site1.com" with my frames or what ever i have to do on site2.com all I want people to see is site2.com

I am up against this code which resides on a JS call.


Code:
if (self != top) {
//Add Code here to log the ocurrance

//Redirect them to an error page
    top.location.href = 'http://death.website.com'; //window.location.href;
    }
I need to get around this some how. anyone ever had this trouble?

Please help,

Thanks
 
There is no way, to the best of my knowledge, to defeat a javascript frame-breaking script.
Sorry, you're going to have to work around it :(
 
this frame-breaking code might not work on all browsers, try
change top.location.href = to top.location =

ok, I help your enemy here :(

for anti-frame-break, I ONLY know one method and it's not always working

methid very simple, setup a timeout counter window.setTimeout as 1 ms, and only do one thing: setup top.location.href = location.href (you need get location href to a var first)

of cause, you also need watch clicks and disable this gadget

this method is too ideally anyway

-- Referer.us
 
thanks I will give it a shot
 
Back
Top