In this JavaScript tutorial, we will see how to perform HTML form validation using the onsubmit event. We will also see how to cancel the form submission based on validation function outcome.