Skip to content

Instantly share code, notes, and snippets.

@bobdenotter
Created April 24, 2013 10:52
Show Gist options
  • Save bobdenotter/5451303 to your computer and use it in GitHub Desktop.
Save bobdenotter/5451303 to your computer and use it in GitHub Desktop.
Bob's definitive Iframe buster buster BUSTER script. Note that the alert _is_ required. Depending on the sophistication of the iframe-buster-buster script, you might want to tweak the time-out (1000, in this case).
<script type="text/javascript">
if (top != self) {
setInterval("alert('Redirecting to example.org, please wait.');top.location.replace('http://example.org/')", 1000);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment