August 2, 2000 - INPUT Elements | WebReference

August 2, 2000 - INPUT Elements

Yehuda Shiran August 2, 2000
INPUT Elements
Tips: August 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

Both Internet Explorer and Netscape Navigator enable you to retrieve a given element's type. Each and every form element (button, radio, text area, etc.) features a 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:


Here 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 MULTIPLE"select-multiple"