What is the main difference between using this ...
document.addEventListener('mousedown', function() {
... and this?
document.onmousedown = function() {
Will there be any other result or any reason?
javascript javascript-events
user824294
source share