August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.form.checkbox.type
The type property provides access to type attribute of the check box. This property is a read-only string that always contains checkbox.
Listing 7.47 instructs the customer to select only two toppings (check boxes) of all those offered. To determine the number of toppings, the type property of the check box is used to determine how many check boxes are in orderForm. The program finds there are four check boxes representing the possible pizza toppings.
<html> <h2>Pizza Machine</h2> Step 1: Please select your pizza toppings:<br> <form name="orderForm"> <input type="checkbox" ... |
Read now
Unlock full access