Form Processing
Before JavaScript was developed, most developers used CGI programs to send information from a user's browser to a Web server. This information was transmitted by an HTML form. When using a form, the user would enter his or her information and submit the form to the server. This usually was slow, due to transmission delay back and forth to the server and the fact that the Web server did most of the work with the form, such as parsing information and validation.
JavaScript helps to speed up this process by interacting with the form data, similar to CGI, before it is sent to the server. This saves the Web server work and reduces the amount of time spent transmitting information. Using JavaScript for form processing can be very useful ...
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.