Navigator 2.0, Internet Explorer 3.0
form.elements[i] form.elements.length
form.elements is an array of the form input objects in form. The array has elements.length items in it. These items may be of any of the form input element types: Button, Checkbox, Hidden, Password, Radio, Reset, Select, Submit, Text, and Textarea. These form input objects appear in the array in the same order that they appear in the HTML source code for the form.
If an item in the form.elements[] array has been given a name with the NAME="name" attribute of its HTML <INPUT> tag, then that item's name becomes a property of form, and this property refers to the item. Thus, it is possible to refer to input objects by name instead of by number:
form.name
Usually, referring to elements by name is easier, and it is therefore a good idea to specify the NAME attribute for all form elements.
"Button", "Checkbox", "Element", "Form", "Hidden", "Password", "Radio", "Reset", "Select", "Submit", "Text", "Textarea"
file: /Techref/language/java/SCRIPT/definitive/refp_133.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/12/11 15:04,
3.145.19.29:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/language/java/SCRIPT/definitive/refp_133.htm"> [Chapter 21] Reference: Form.elements[]</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.