user3926604
user3926604

Reputation: 189

javascript function like stopPropagation()


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

Answers (1)

Quentin
Quentin

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

Related Questions