addeventlistener on mousedown code example Example: add mousedown event listener javascript object.addEventListener("mousedown", myScript);