Easy Tutorial
❮ Event Onscroll Dom Obj Reset ❯

HTML DOM getElementsByName() Method


Definition and Usage

The getElementsByName() method returns a collection of objects with the specified name.

Syntax

Parameter Description
name Required. The name of the element.

Browser Support

All major browsers support the getElementsByName() method.


Example

Example

Pop up the number of elements with the specified name:

❮ Event Onscroll Dom Obj Reset ❯