Mega Code Archive

 
Categories / JavaScript Tutorial / Form
 

A form can contain any number of input elements

is the main HTML input element. The type attribute of determines what type of input control is displayed: is a single-line text box. is a radio button. is a check box. is a file upload text box. is a password text box (where characters are not displayed as you type). is a generic button that can be used to cause a custom action. is a button whose sole purpose is to submit the form. is a button whose sole purpose is to reset all fields in the form to their default values is an input field that isn't displayed on screen. is an image that is used just like a Submit button. renders either a combo box or a list box composed of values defined by elements renders a multiline text box in a size determined by the rows and cols attributes.