Previous Chapter's Examples-|-Next Example-|-Return to Chapter Listing
Example 12.1:
onblur: Form Validation
This form uses the onblur event handler to verify the form entry. Note, however, that if you enter text instead of a number, you'll get an error message. We'll see how to fix that later.
Type in an age of 17 or less, then click outside the text box to see what will happen. Then try an age of 100 or more.
These are the scripts we used. First, in the HEAD:
Then we created this form element:
Previous Chapter's Examples-|-Next Example-|-Return to Chapter Listing