
DATE:1996-07-30
Tax Calculator
The following form calculates the tax for non-Australian residents (thats most of you).
Simply type in your income and calculate the result.
View source to read the code.
COMMENTS:
Some of the things that this code does is
- Format output such as calculating the percentage and adding the % sign.
- Truncating numbers to a certain number of decimal places, such as 2 for the
dollar amounts and 1 for the percentage.
- Off course it also reads and writes data from the form. One thing I came accross was that
you could only access a text input on a form if the name is in lower case, well
at least the first character. To me a while to figure that one out.
If you want this script just choose "Save Frame As..." (in Netscape) when you have the focus on the frame.
URL: http://www.oocities.org/SiliconValley/7116/jv_tax.html