Skip to content

Instantly share code, notes, and snippets.

@wildiney
Created June 14, 2012 12:43
Show Gist options
  • Save wildiney/2930039 to your computer and use it in GitHub Desktop.
Save wildiney/2930039 to your computer and use it in GitHub Desktop.
verificar se está dentro de iframe
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