Forum Moderators: open

Message Too Old, No Replies

Is there a way to stop frame breakers?

         

deviantlnx

7:45 pm on Sep 19, 2008 (gmt 0)

10+ Year Member



Hi,

I've found that some YM pop ups break frames and take control of the browser window (through a redirect I believe). Is there any way to stop this?

httpwebwitch

1:23 am on Sep 20, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<script> 
function framebreakerbreaker(){
if(!document.all){[url=http://developer.mozilla.org/en/DOM/window.stop]window.stop()[/url];}else{window.document.execCommand('[url=http://msdn.microsoft.com/en-us/library/ms537423(VS.85).aspx]Stop[/url]');}
}
</script>

then load the frame like this:

<iframe onload="framebreakerbreaker()" src="http://www.example.com"> 

I have not tried this myself; I read it in an article somewhere. So give it a go & pls report back here whether it actually works