Submit ElementNameSubmit Element---a button to submit a formAvailabilityNavigator 2.0, Internet Explorer 3.0; enhanced in Navigator 3.0 Synopsis
form.name form.elements[i] form.elements['name'] Properties
HTML SyntaxAn Reset object is created with a standard HTML <INPUT> tag, with the addition of the onClick attribute:
<FORM> ... <INPUT TYPE="submit" specifies that this is a Submit button [ VALUE="label" ] the text that is to appear within the button specifies the value property [ NAME="name" ] a name that can later be used to refer to the button specifies the name property [ onClick="handler" ] JavaScript statements to be executed when the button is clicked > ... </FORM> DescriptionThe Submit element has the same properties and methods as the Button object, but has a more specialized purpose. When a Submit button is clicked, it submits the data in the form that contains the button to the server specified by the form's ACTION attribute, and loads the resulting HTML page sent back by that server. UsageForm data may also be submitted by invoking the Form.submit() method. The Submit.onclick() event handler can define additional JavaScript statements to be executed when a Submit button is clicked, but this event handler cannot prevent the form from being submitted (if it fails input verification tests, for example).[1] To cancel a form submission, you must use the Form.onsubmit() event handler.
If no VALUE attribute is specified for a Submit object, it will be labelled Submit Query. In some forms, it may make more sense to label the button Submit or Done or Send. |
|