Simple button example

This page contains a simple button that calls the built-in alert function when clicked.

 


 

The HTML code for the button above is:

<input type='button' value='Click here!' onClick='alert("You clicked the button!")'>