This example uses the addEventListener() method to attach a "mousedown" and "mouseup" event to a p element.
Click me.