Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save garoevans/2170557 to your computer and use it in GitHub Desktop.
Save garoevans/2170557 to your computer and use it in GitHub Desktop.
JavaScript: onmouseout stop child triggering
var e = event.toElement || event.relatedTarget;
if (e.parentNode == this || e == this) { return; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment