JSFiddle - React, Tailwind, and code Playground
by olvlvl
HTML
<p>Did you know that in DOM3 event handlers are invoked in the order they are registered? This seems very counter intuitive to me because you cannot override handlers that were previously registered.</p>
<button id="btn">Click me</button>
CSS
body {
font-family: sans-serif;
}
JavaScript
document.id('btn').addEvent('click', function(ev) {
alert("I popped")
}).addEvent('click', function(ev) {
ev.stop()
})