Form JavaScript Tutorial

Syntax

document.form.checkbox.value
The value property provides access to value attribute of the check box.
This property is a read/write value that is sent to the server when the form is submitted.


    
                   name="onion"
             value="hot onion">Onion

                   name="bacon"
             value="spicy bacon">Bacon

                   value="Order Pizza"
             name="orderButton"
             onClick="alert('ordered.')">