michaellunsford Posted May 18, 2009 Share Posted May 18, 2009 Not sure where to post this - I'm guessing javascript is one way to do it, so here I am. Imagine google image search, you click the image, it loads the image in the top frame and the web page that contains that image appears in the bottom frame. That's exactly what another website is doing by loading our content in a frame they have branded for themselves. I'm thinking this be detected and the page can reloaded without the frame. How to detect this, though, is the problem. Link to comment https://forums.phpfreaks.com/topic/158593-solved-prevent-rebranding-our-content-with-frames/ Share on other sites More sharing options...
michaellunsford Posted May 18, 2009 Author Share Posted May 18, 2009 got it <script type="text/javascript"> if(top.frames.length>0) { top.frames.location = 'http://example.com'; } </script> Link to comment https://forums.phpfreaks.com/topic/158593-solved-prevent-rebranding-our-content-with-frames/#findComment-836495 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.