The namedItem() method of the HTMLAllCollection interface returns the first Element in the collection whose id or name attribute matches the specified name, or null if no element matches.
namedItem(name)nameA string representing the value of the id or name attribute of the element we are looking for.
The first Element in the HTMLAllCollection matching the name, or null, if there are none.