Forms and Form Events
JavaScript allows you to make your HTML pages more interactive and smarter by providing a decision making capabilities. JavaScript is used to enhance your forms. The CGI (Common Gateway Interface) is a way to safely transfer data from client to server. It is used to transfer users data from browser to requested server. JavaScript is used to process forms without requesting a server. When user wants to submit data to server, user needs to submit form to CGI program. Before submitting form to server JavaScript takes all precautions such as read and set contents, form controls, form events, validation of data, invoking of an objects etc... Form A simple HTML form is way different than a JavaScript enhanced form. The JavaScript form is always relies on one or more events and event handlers. These event handlers calls JavaScript actions when user interact with the form for example moving a mouse over form or any component, clicking on any button etc. Form Controls Foll...