Example of onClick Event Object
An Event Handler executes a segment of a code based on certain
events occurring within the application, such as onClick Event Handler.
a button (regular, radio, reset and submit) is clicked, a link is pushed, a
checkbox is checked or an image map area is selected. Except for the regular
button and the area, the onClick Event Handler can return false to cancel the
action. For example:
<INPUT TYPE="submit" NAME="mysubmit" VALUE="Submit"
onClick="return confirm(`Are you sure you want to submit the form?')">