This example uses the addEventListener() method to attach a click event to a button.
Right Click Me Double Click Me Click Me Mouse Down / Up