getElementsByName

Gets a collection of objects based on the value of the NAME or ID attribute.

Parameters

elementName

Gets a collection of objects based on the value of the NAME or ID attribute.

MDN Reference