
This interface renders content as an HTML button.
This element is a block element.
IHTMLButtonElement Methods
| get_type | put_value | get_value |
| put_name | get_name | put_status |
| get_status | put_disabled | get_disabled |
| get_form | createTextRange |
HRESULT get_type(
BSTR *p
);
Retrieves the visual appearance and default behavior of the button.
| 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. |
HRESULT put_value(
BSTR v
);
Sets the value of the button control. The value is submitted to the server as a name/value pair.
See also get_value
HRESULT get_value(
BSTR *p
);
Retrieves the value of the button control. The value is submitted to the server as a name/value pair.
See also put_value
HRESULT put_name(
BSTR v
);
Sets the name of the button control.
This method is related to the name property of the BUTTON object.
See also get_name
HRESULT get_name(
BSTR *p
);
Retrieves the name of the button control.
This method is related to the name property of the BUTTON object.
See also put_name
HRESULT put_status(
VARIANT v
);
Sets the status of the button control.
See also get_status
HRESULT get_status(
VARIANT *p
);
Retrieves the status of the button control.
See also put_status
HRESULT put_disabled(
VARIANT_BOOL v
);
Enables or disables the control. A disabled control appears greyed and does not respond to user input.
The default value for this property is FALSE.
See also get_disabled
HRESULT get_disabled(
VARIANT_BOOL *p
);
Determines whether the control is enabled or disabled.
The default value for this property is FALSE.
See also put_disabled
HRESULT get_form(
IHTMLFormElement **p
);
Retrieves a reference to the form the element is embedded on.
See also IHTMLFormElement
HRESULT createTextRange(
IHTMLTxtRange **range
);
Creates a text range object for the BUTTON object. You use a text range to examine and modify the text within the element.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.