Created
March 22, 2015 22:06
-
-
Save mhammonds/ef7d828f7857755e9ac3 to your computer and use it in GitHub Desktop.
Detect the URL of parent iFrame
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.self !== window.top ) | |
{ | |
alert(document.referrer); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment