Javascript: Lesson 4

Lab Assignment:

Take the script from the lecture and modify it into a full-fledged calculator. It can stay simple, with three text boxes and four buttons (using two text boxes as "entry" boxes and the third as an answer box, then with buttons for addition, subtraction, multiplication, and division).
Input 1st Number:
Input 2nd Number:
Choose operation:
Result:
 

Extra Credit:

Work with the other form entities: drop downs, radio buttons, check boxes, and pick lists, along with the other event handlers like onFocus, onSubmit, onChange... and have fun.

Going overboard with 216 Web-Safe Colors: Most names are for entertainment purposes only.


© 2001 Kiner Designs

Valid HTML 4.0!

Valid CSS!