Example Javascript: Four Function Calculator

This is an example javascript demonstrating the use of basic math capabilities, the "onclick()" event of an IMG, flags, and accumulators. You can expand this to use better graphics, add more functionality (e.g. square root key, CE key, etc.) and so on. Suggested uses include pages where loan applications are being filled out (e.g. it may ask for an average of salary by month when people get paid biweekly, that sort of thing.)



coded 1999-2000 alstonlabs.com