Changes

Jump to: navigation, search

Building Forms with JavaScript

173 bytes added, 19:37, 16 May 2007
The JavaScript Button Object
* '''type="BUTTON"''' - The basic button which performs no action by default unless an event handler is assigned to it.
* '''type="SUBMIT"''' - The submit button. When pressed this button causes the data in the Form to sent to the server using the settings defined in the enclosing <Form> tag. If the ''onsubmit'' attribuite on the enclosing ''<form>'' tag has been specified this will be executed before the form data is submitted (useful for form data validation).
* '''type="RESET"''' - The reset button. When pressed causes the fields in the Form to be either cleared, or reset to the defaultValue (if one has been specified).

Navigation menu