August 2, 2000 - INPUT Elements
![]() |
August 2, 2000 INPUT Elements Tips: August 2000
Yehuda Shiran, Ph.D.
|
type property which reflects the type of that form element. The type property follows the element reference. For example, you can access the type of the first element of the first form in the following fashion:
document.forms[0].elements[0].typeHere are all the form elements with their corresponding types:
| HTML Element | type Property |
INPUT TYPE="button" | "button" |
INPUT TYPE="checkbox" | "checkbox" |
INPUT TYPE="file" | "file" |
INPUT TYPE="hidden" | "hidden" |
INPUT TYPE="password" | "password" |
INPUT TYPE="radio" | "radio" |
INPUT TYPE="reset" | "reset" |
INPUT TYPE="submit" | "submit" |
INPUT TYPE="text" | "text" |
SELECT | "select-one" |
SELECT MULTIPLE | "select-multiple" |
TEXTAREA | "textarea" |



