![]() | ![]() | ![]() |
| ||
|
type
Description
Specifies the visual appearance and default behavior of the button.
Syntax
object.type
Settings
This read-only property can be one of these strings:
button Creates a Command button. This is the default value for this property. reset Creates a Reset button. If in a form, this button resets the fields in the form to their initial values. submit Creates a Submit button. If in a form, this button submits the form. A Submit button has the same default behavior as the button created using the submit type with the INPUT element. When the input focus is in a control in the form (other than another button), the Submit button receives a bold border, and the user can "click" the button by pressing the ENTER key. If the Submit button has a name property, the button contributes a name/value pair to the submitted data.
When the Submit and Reset buttons are in the document (rather than in a form), the Submit button receives a bold border if the focus is in the document but not in another button, and the user can press ENTER to click the Submit button.
Applies To
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.