Javascript [Electronic resources] : The Definitive Guide (4th Edition) نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Javascript [Electronic resources] : The Definitive Guide (4th Edition) - نسخه متنی

David Flanagan

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید

Availability


JavaScript 1.0


Synopsis

form.elements[i]
form.elements.length

Description


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.


Usage


If an item in the
form.elements[] array
has been given a name with the
name="name"
attribute of its HTML <input> tag, 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

Referring to elements by name is usually easier, so it is a good idea
to specify the name attribute for all form
elements.


See Also


Button, Checkbox, Form, Hidden, Input, Password, Radio, Reset,
Select, Submit, Text, Textarea

/ 844