This example uses the addEventListener() method to add two click events to the same button. However, the stopImmediatePropagation() method stops the second event handler from being executed.
Note: The stopImmediatePropagation() method is not supported in IE8 and earlier versions.