I posted this as an answer to another thread and I kept seeing people post about having problems with iframe breakers so I'm just making this topic about it. I was looking for an anti-iframe breaker and found this solution on a site (NOT CODED BY ME).
Site was:
Put this function between the head tags.
Then when you want to make an iframe include the function in it.
Tell me if you have any problems with it, I tested it and it works for me on shareapic. Hopefully it works for all/most other sites.
Site was:
Code:
http://www.steadyhealth.com/Web_Hosting_Anti_Frame_Breaker_solution_t53346.html
Put this function between the head tags.
Code:
<script>
function StopLoading()
{
if (!document.all)
{
window.stop();
}
else
{
window.document.execCommand('Stop');
}
}
</script>
Then when you want to make an iframe include the function in it.
Code:
<iframe onload="StopLoading()" src="http://www.site.com">
Tell me if you have any problems with it, I tested it and it works for me on shareapic. Hopefully it works for all/most other sites.