Java Reference
In-Depth Information
Working with JavaScript Forms
Perhaps one of the most common uses for JavaScript is to validate forms. JavaScript al-
lows you to perform basic validation checks on data before that data is sent to the web server.
The following URL has an example of a JavaScript enabled form:
http://www.httprecipes.com/1/9/form.php
This form can also be seen in Figure 9.3.
Figure 9.3: A JavaScript Enabled Form
This form allows the user to enter information about a loan. Once the user clicks the “Cal-
culate” button, a loan amortization schedule will be calculated. You can see this amortization
schedule in Figure 9.4.
Search WWH ::




Custom Search