Exercise:

When the button is clicked, trigger myFunction() with an event.

Hint: Add an onclick event.

Edit This Code:
Result:
Correct Code:
Correct Result:
Exercise - © w3schools.com