Try checking out these tutorials if you’d like more guidance!
onchange. You can see the complete list here:
Here is an example of a page that gives an alert when the button is pressed:
thisas a Parameter
To get the properties of the button clicked, just pass
this as its parameter.
For example, this page displays a secret message stored in the value attribute in each button:
If you would like real example of
this in action, look at this calculator app.
initialize(), where you initialize all your Global Variables and call any functions you need.