SubmitEvent - Web APIs | MDN
The SubmitEvent interface defines the object used to represent an HTML form's event. This event is fired at the when the form's submit action is invoked. Creates and returns a new SubmitEvent object whose and other options are configured as specified. Note that currently the only valid type for a SubmitEvent is submit.
https://developer.mozilla.org/en-US/docs/Web/API/SubmitEvent