Previous Example-|-Next Example-|-Return to Chapter Listing

Example 12.7:
onsubmit: Displaying an Alert Box


This form uses the onsubmit event handler to display an Alert box when the user clicks on the Submit button.
Type your age:




This is the form we used. <FORM NAME="submittest" onsubmit="alert('Thanks for your information; remember to check back with us next week.')"> Type your age: <BR> <INPUT TYPE="text" NAME="ageBox"><P><BR> <INPUT TYPE="SUBMIT"> </FORM>
Previous Example-|-Next Example-|-Return to Chapter Listing