Created
November 9, 2015 03:58
-
-
Save lenivene/5d0fb4bb5ed04766b8bd to your computer and use it in GitHub Desktop.
Redirect if in iframe switched on
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((self.parent && !(self.parent===self)) || (self.parent.frames.length!=0) || (parent.frames.length > 0) || ( window!= window.top )){self.parent.location=document.location;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment