Created
June 14, 2012 12:43
-
-
Save wildiney/2930039 to your computer and use it in GitHub Desktop.
verificar se está dentro de 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(location.href!=parent.location) { | |
alert("tá dentro do iframe") | |
} else { | |
alert("tá fora do iframe") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment