). Since it is almost impossible to keep the validation checks in real-time submissions and using manpower is not an optimized way to deal with such things. The following example shows how to use onsubmit. user's system) using JavaScript before passing it onto the web server for further processing. Use Simfatic Forms to visually design your HTML Forms. The submit event triggers when the form is submitted, it is usually used to validate the form before sending it to the server or to abort the submission and process it in JavaScript. (adsbygoogle = window.adsbygoogle || []).push({}); Following is an email validation example where the format of the email will be checked as well. If a form field (fname) is empty, the required attribute prevents this form from being submitted: HTML Form Example