A JavaScript Curiosity Regarding addEventListener
drunkenfist.com
A JavaScript Curiosity Regarding addEventListener
1–4 of 4 posts
Re: A JavaScript Curiosity Regarding addEventListener
#2Post this on stackoverflow
Re: A JavaScript Curiosity Regarding addEventListener
#3It 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.
Re: A JavaScript Curiosity Regarding addEventListener
#4The answer is in the comments on the blog post already.