TrYit: As an exercise, use the HTML script element in the body section of an html document to write "hello world". You can Use the JS example to the right. Note: use a plain text editor.
Now that you are familuar with,
Using event handlers
The basic syntax of these event handlers is:
<INPUT TYPE="button" VALUE="Calculate" onClick="Compute(this.form)">
The event handler in this example is onClick, which calls the Compute function when the user initiates the event of clicking on a button. This is refered to as an interactive event handler since the user must do something.