4 ms·
A JavaScript Curiosity Regarding addEventListener
- geuis 18y agoPost this on stackoverflow
- arb 18y agoIt looks like standard behaviour defined by event cancelation and default actions in the W3C DOM2 Events spec. Whether this is cross-browser or not isn't obvious. Suppressing default actions with event.preventDefault() seems to work in Firefox, at least.
- lhorie 18y agoThe answer is in the comments on the blog post already.