The form object contains an elements array.
The elements array are indexed in the order they appear, and you can access a specific element by its NAME instead of index number.
Using Different Methods of Accessing Form Elements
Example of Accessing Form Elements