By pressing the button, a function will be called. The function will alert a message.
Your Result:
Edit the code above and click to see the result.
W3Schools.com
- Try it yourself