Adding an event handler to a button

Objective

  • Use inline JavaScript to create an event handler

JavaScript code added as attribute value

Example:
Code: