If you're using Firefox, then you should be able to find, under the Tools menu, the handy dandy little helper known as the "JavaScript Console". Select that and have it open when you load up the HTML file, enter in numbers, and click the button... and it'll tell you, "Error: document.salary has no properties" and that the error occurred at line 10 of the page.
More specifically, the root of the problem is that your JavaScript code believes that the name of the form in the document is "salary", while the document itself names the form "wages". Pick one or the other and make them all match, and I think you'll find that everything else is just fine.
(no subject)
Date: 2006-11-11 04:05 am (UTC)More specifically, the root of the problem is that your JavaScript code believes that the name of the form in the document is "salary", while the document itself names the form "wages". Pick one or the other and make them all match, and I think you'll find that everything else is just fine.