Forms in JavaScript are handled through their fields and events: input or change to react to typing, submit for submission, value to read a field, and FormData to retrieve all the values. You cancel the default submission with preventDefault() to handle it yourself.
Example
const data = new FormData(form)
data.get('email')