The form read-only property of the ElementInternals interface returns the HTMLFormElement associated with this element.
form
MDN Reference