Edit This Code:
See Result »
This example uses the addEventListener() method to attach a "click" event to a p element.
Click me.
Result: