Run
Online Code Editor
Example of the addEventListener() method.
Click the following button to see the effect.
Click me