Created
October 30, 2012 02:11
-
-
Save tristanm/3977908 to your computer and use it in GitHub Desktop.
Always break out of an iframe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (window.self !== window.top) { | |
window.top.location.href = window.self.location.href; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Breakout!?