Created
October 20, 2014 13:36
-
-
Save adamculpepper/c40d52e403d3c5d770bb to your computer and use it in GitHub Desktop.
Break out of iframes
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
// Break out of iframes | |
if (window != window.top) { | |
top.location.href = location.href | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment