what is the difference between stoppropagation and preventdefault?
7 Answers. stopPropagation stops the event from bubbling up the event chain. preventDefault prevents the default action the browser makes on that event.