Form JavaScript Tutorial

Syntax

onBlur="command"
The onBlur event handler is defined in an tag and specifies what to do when a check box loses focus.


    
                   name="peppers"
             onBlur="pepperAlert()">Peppers

                   name="sausage">Sausage

      Step 2:
                   value="Order Pizza"
             name="orderButton"
             onClick="alert('Your pizza has been ordered.')">