HTMLCollection namedItem() Method
The namedItem() Method is used to return the element with having the specified ID, OR, name or content in an HTML element collection in the document.
Parameters: It contains the name as its parameters values which represent the ID OR name attribute that the user want to return.
After clicking on Submit:
Supported Browsers: The browser supported by HTMLCollection NAMEDitem() Method are listed below:
- Google Chrome
- Internet Explorer
Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML course.