Javascript event registration models, good explanation (quirksmode.org) 24 points by erkin_unlu 14y ago ↗ HN
[–] jarek-foksa 14y ago ↗ It's worth noting that DOM4 spec makes third argument in addEventListener() method optional.It will default to false if you skip it (which is almost always preferable): element.addEventListener('mousedown', callback);
[–] dmethvin 14y ago ↗ There's also an object-based argument to addEventListener: http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-E...More discussion here: http://ajaxian.com/archives/an-alternative-way-to-addeventli...
2 comments
[ 4.0 ms ] story [ 10.1 ms ] threadIt will default to false if you skip it (which is almost always preferable):
More discussion here: http://ajaxian.com/archives/an-alternative-way-to-addeventli...