August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onBlur="command"
The onBlur event handler is defined in an <input> tag and specifies what to do when a check box loses focus.
The code in Listing 7.44 uses the onBlur event handler to display a message alerting the customer that the peppers he or she is ordering are hot.
<html> <h2>Pizza Machine</h2> Step 1: Please select your pizza toppings:<BR> <form name="orderForm"> <input type="checkbox" name="peppers" onBlur="pepperAlert()">Peppers<br> <input type="checkbox" name="sausage">Sausage<hr> Step 2: <input type="button" value="Order Pizza" name="orderButton" onClick="alert('Your ... |
Read now
Unlock full access