Events are usually triggered by the user, e.g. clicking on a button with the mouse, moving the mouse around, moving the mouse over some object, clicking the mouse. From those examples you can see that events can occur at several levels of abstraction and we are only going to loock a simple example here. Netscape's extensions to HTML tags allow to assign a Javascript function with an Event Handler. This means that programs written in JavaScript can be triggered via HTML forms.
Lets have a look at a simple example.
First we need a function. Remember to respect case of built-in and user defined symbols. A similar example shows how to create push-buttons for navigation. Now let's see how we can get data from a user. There are several ways of processing input.