On paper a contact form needs two things: somewhere for the submit click to go, and a path from there to a person. In practice that turns into a mailer, an endpoint, error handling and a server instance that wants maintaining from then on.
What changes
The action attribute. That is all. The fields keep the names they have, and
whatever you invested in styling stays where it is.
With and without JavaScript
Both routes reach the same endpoint. If the browser submits the form the
classic way, Formdall answers with a redirect - to your own thank-you page, if
you have set one. Send the data with fetch as JSON instead and a JSON
response comes back with the page staying put.
What the endpoint checks before it stores anything
Every submission runs through a series of checks. Three of them matter for receiving itself: where the request came from, whether the same submission has already arrived, and whether the fields match what is on file for this form. The rest - captcha, honeypot, IP reputation, disposable addresses - has a page of its own.