Focus on the Form
...
  <form name="sample">
    Give a number
    <input type="text" name="x1" size=3>
    Adding 2 to it
    <input type="text" name="x2" size=3>
  </form>
...
The action comes in
response to events.
When the user enters
data and then Changes
position, there is a
change event.