Reputation: 189
I don't want to use jquery in my code so is there (or how to define) a function like stopPropagation() in javascript without using jquery?
Upvotes: 1
Views: 82
Reputation: 943569
jQuery just wraps the method of the same name on the native DOM event object.
So, event.stopPropagation()
See also, the spec.
Upvotes: 7