Here's a more complex example of events

In this example, the event onclick runs a javascript. This simply adds two numbers and displays the results in the third box.


Here's the code:

Here are the results:
+ =