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. Quote Link to comment 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. Quote Link to comment 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; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.