I’m trying to load a page in the background of one of my landers with an iframe.
The issue I have is that the page I’m loading has some kind of iframe breaker in its code.
Is there a way of stopping this?
I have found a piece of code that does stop it but that same code then stops the links on my lander working
This is it…..
Anyone got any ideas?
Weird place… I know… but I was looking for a solution a while back myself and found this:
It’s worked for me before.
It’s tested by me and it works with following frame breaker script, which is in the same time most common one and as someone said "bulletproof". Well, not any more
Frame Breaker script:
if (top != self)
top.location.href = location.href;
And Anti Frame Breaker script:
First put this function between html head tags:
Then just add onload event handler to iframe you want to supress, like this:
<iframe onload="StopLoading()" src="https://www.someaddress.com">
thanks for your help with that one.