The HTMLFormElement.name property represents the name of the current form element as a string.
HTMLFormElement.name
MDN Reference