Created
January 4, 2013 15:27
-
-
Save masiorama/4453442 to your computer and use it in GitHub Desktop.
JavaScript: frameTargetParent
This file contains 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 != window.top) { | |
/* inside the frame */ | |
} else { | |
/* inside the parent */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment