Previous Example-|-Next Example-|-Return to Chapter Listing
Example 12.3:
onfocus: Form Modification
This uses the onfocus event handler. Enter numbers in the first two boxes, then Tab to (or click in) the last box. The onfocus handler adds the numbers.
These are the scripts we used. First, in the HEAD:
Then we created this form element:
Previous Example-|-Next Example-|-Return to Chapter Listing