The formdata event is a low-level API that lets any JavaScript code participate in form submission. Add a formdata event listener to the form you want to interact with. When a user clicks submit, the form fires a formdata event, which includes a FormData object that holds all of the data being submitted. Each formdata listener gets a chance to add to or modify the data before the form is submitted

