pbakos92 Posted January 28, 2009 Share Posted January 28, 2009 Hey. I desperately need a frame-breaker-breaker. The page I have in a frame uses: if(self!=top) top.location=self.location I tried: function framebreakerbreaker(){ if(!document.all){window.stop();}else{window.document.execCommand('Stop');} } and added it to the onload parameter of the frame but it didn't work. Does anyone know a working way to break frame breakers? Another key point: Before it loads the frame breaking code it checks the value of a form parameter on the page. Would it be possible to alter the value of a hidden input of an iframe from the parent window? I tried with no success, I'm assuming because of browser restrictions. Link to comment https://forums.phpfreaks.com/topic/142860-frame-breaker-breaker/ Share on other sites More sharing options...
webster08 Posted January 28, 2009 Share Posted January 28, 2009 what exactly do you mean "frame-breaker-breaker"? you can access your framed page's hidden form field with contentWindow; as long as your framed pages is from within your domain. Link to comment https://forums.phpfreaks.com/topic/142860-frame-breaker-breaker/#findComment-748920 Share on other sites More sharing options...
BioBob Posted January 29, 2009 Share Posted January 29, 2009 if (window != top) { top.location.href = location.href; } Link to comment https://forums.phpfreaks.com/topic/142860-frame-breaker-breaker/#findComment-749460 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.