Skip to content

Instantly share code, notes, and snippets.

@kuleszaj
Last active December 11, 2015 17:38
Show Gist options
  • Save kuleszaj/4635674 to your computer and use it in GitHub Desktop.
Save kuleszaj/4635674 to your computer and use it in GitHub Desktop.
Cause a website to break out of any frames it may be embedded in.
<script type="text/javascript">
if (top.frames.length!=0)
top.location=self.document.location;
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment