Within the FORM element, another kind of event, the submit event, occurs when the user clicks on a submit button. Before there was JavaScript, clicking on the submit button sent the form data to a CGI process on a remote server.
The CGI process would then process the data and send back a new page of data. With JavaScript, you can write an event handler for the submit event.
Leave a Reply
You must be logged in to post a comment.