stopPropagation
-
Difference between event.stopPropagation and event.preventDefaultWeb/DOMBrowser 2019. 9. 28. 16:25
1. Overview Let's distribute the difference between event.stopPropagation and event.preventDefault in DOM Event fine-grained. 2. Description stopPropagation stops the event from bubbling up the event chain. preventDefault prevents the default action the browser makes on that event. 3. Examples button $("#but").click(function (event) { //using preventDefault, only the browser's default action is ..