Skip to content

Instantly share code, notes, and snippets.

@troy
Created September 14, 2009 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save troy/186466 to your computer and use it in GitHub Desktop.
Save troy/186466 to your computer and use it in GitHub Desktop.
// part of a security explanation - see
// http://www.nytimes.com/2009/09/13/business/media/13note.html and
// http://troy.yort.com/anatomy-of-a-malware-ad-on-nytimes-com
if (top.location!= self.location) {
top.location = action_URL;
} else {
window.location = action_URL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment