Reputation: 21
Referring to question here
The anti frame busting js code works well on Chrome, but it's not working on either Firefox or IE. I think this may be due to the fact that the site I am trying to iframe puts the frame busting code on the top of the page.
I am trying and researching to find a way to get around this and here's what I've come with:
window.onbeforeunload = function() {
window.onbeforeunload = null
return "CLICK STAY ON THIS PAGE OF YOU SEE THIS BOX"
}
Basically this ask the user to click stay on this page and it worked but I am trying to find any better way that doesn't need user interaction.
This is not for an evil purpose so try to help with it.
Upvotes: 0
Views: 460