The submit event is launched when a button is clicked, the event name is determined by the type="" attribute in the button
the event object is the event passed to the function. so console.log(event)
https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit_event
Обсуждают сегодня