August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onSubmit="command"
The onSubmit method of the Form property executes JavaScript code when a submit event occurs.
Listing 7.264 shows how the onSubmit event handler is used for a Form object. A user would enter his or her comments in the text area provided. Once done, he or she clicks the Submit button to submit the form. Using the onSubmit event handler, you can display a thank you note when the user has submitted his or her comments.
<html> <head> <title> Using the onSubmit event handler for the Form object</title> </head> <body> <script language="JavaScript"> <!-- Hide //function displays a confirmation ... |
Read now
Unlock full access