IHTMLButtonElement::type Property

Gets the classification and default behavior of the button.

Syntax


HRESULT IHTMLButtonElement::get_type(BSTR *p);

Parameters

p
Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.

Possible Values

button Default. Creates a Command button.
reset Creates a Reset button. If the button is in a form, it resets the fields in the form to their initial values.
submit Creates a Submit button. If the button is in a form, it submits the form.

Return Value

Returns S_OK if successful, or an error value otherwise.

Show: