August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Event.SUBMIT
The SUBMIT property of the Event object is used solely by forms to indicate the clicking of the Submit button.
Listing 7.238 shows an example of how JavaScript can be used to process a form when the Submit button is clicked. The Window listens for the SUBMIT event. When captured,it will call the handle() function. This function informs the user that the Submit button was clicked.
<html> <head> <title>Example of Event.SUBMIT</title> </head> <body> <script language="JavaScript"> <!--Hide // sets up the window to capture SUBMIT events window.captureEvents(Event.SUBMIT); // function ... |
Read now
Unlock full access