Published: 15Jul01 | Last Updated: 16Feb09 | Status: To Be Continued
The JavaScript Web Browser Form Validation Example below uses the form object's onSubmit event handler to execute a JavaScript when the Submit button is clicked. The JavaScript checks for empty form elements, nothing else. If an empty form element is found an alert window is generated and the mouse cursor is placed in the appropriate field. If no empty form elements are found the page is simply reloaded.
2. JavaScript Web Browser Form Validation Example