The event.preventDefault () method stopped the browser from performing its default form submission, which would have caused a page reload. This allowed me to handle form validation in JavaScript, ...