This example uses the addEventListener() method to attach a "dblclick" event to a p element.
Double-click me.