Skip to content

Instantly share code, notes, and snippets.

@psiborg
Created January 6, 2012 08:38
Show Gist options
  • Select an option

  • Save psiborg/1569737 to your computer and use it in GitHub Desktop.

Select an option

Save psiborg/1569737 to your computer and use it in GitHub Desktop.
JS Stop events from propagating
if (!e) var e = window.event;
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment