3 ms·
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 pr
by jarek-foksa 15y 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);