Skip to content

Instantly share code, notes, and snippets.

@mhammonds
Created March 22, 2015 22:06
Show Gist options
  • Save mhammonds/ef7d828f7857755e9ac3 to your computer and use it in GitHub Desktop.
Save mhammonds/ef7d828f7857755e9ac3 to your computer and use it in GitHub Desktop.
Detect the URL of parent iFrame
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