Form JavaScript Tutorial

Syntax

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


    
                   name="peppers">Peppers

                   name="sausage"
             onFocus="chooseExtraCheese()">Sausage

                   name="cheese">Extra Cheese

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