Live data from Hacker News

A JavaScript Curiosity Regarding addEventListener

drunkenfist.com

1–4 of 4 posts

Re: A JavaScript Curiosity Regarding addEventListener

#3
It 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.