August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.form.checkbox.name
The name property provides access to the name attribute of the check box. This property is a read-only string.
Listing 7.43 uses the name property of the check boxes to display what engine type was selected.
<html> <h2>Truck Purchase Sheet</h2> Step1: Please select the engine style you want on your new truck:<BR> <form name="orderForm"> <input type="checkbox" name="V6">V6<br> <input type="checkbox" name="V8">V8<hr> Step 2: <input type="button" value="Submit Order" name="orderButton" onClick="submitOrder()"> </form> <script language="JavaScript"> ... |
Read now
Unlock full access