Document Object
The getElementsByName() method accesses all elements with the specified name.
| Parameter | Description |
|---|---|
| name | Required. The name of the element you want to access/manipulate |
![]()
The getElementsByName() method is supported in all major browsers.
Alert the number of elements with a specific name:
Document Object
Your message has been sent to W3Schools.