JavaScript: Lesson 6

 Arrays & Simple Math

When you enter text into the textboxes and press OK, your data is sent to my custom function.
There, all the items of data are processed. I use an array to find the sum of all your numbers.

Also notice that I made a method to set the focus to the first textbox when the form loads. I use it again
when I clear all the textboxes. To clear all textboxes, place all the controls inside a <form> tag. Then use the
formId.reset() method!