when do we use mousedown listener in javascript code example Example: add mousedown event listener javascript object.addEventListener("mousedown", myScript);