jstest



This example uses the addEventListener() method to attach a click event to a button.

Note: The addEventListener() method is not supported in Internet Explorer 8 and earlier versions.