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 16:00, local time: 2024/8/23 15:16,
18.218.202.50: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://piclist.com/tecHREF/language/java/SCRIPT/definitive/refp_133.htm"> [Chapter 21] Reference: Form.elements[]</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.