HRESULT IHTMLInputButtonElement::get_type(BSTR *p);HRESULT IHTMLInputButtonElement::put_type(BSTR v);
- Pointer to a variable of type BSTR that receives one of the input control values in Possible Values.
- BSTR that specifies one of the input control values in Possible Values.
button Creates a button control. checkbox Creates a check box for simple Boolean attributes or for attributes that can take multiple values at the same time. The input consists of a number of check box controls, each of which has the same name. Each selected check box generates a separate name/value pair in the submitted data, even if this results in duplicate names. The default value is
file Creates a file upload object. hidden Creates a control hidden from the user, but the value of the IHTMLInputElement::value property is sent with the submitted form. image Creates an image control that can be clicked, causing the form to be immediately submitted. The coordinates of the selected point are measured in pixels from the upper-left corner of the image and are submitted with the form as two name/value pairs. The x-coordinate is submitted under the name of the control with
.xappended, and the y-coordinate is submitted under the name of the control with
valueproperty is ignored. The image is specified by the IHTMLInputImage::src property, exactly as for the img object
password Creates a control similar to the text control, except that text is not displayed as the user enters it. radio Creates radio buttons used for mutually exclusive sets of values. Each radio button control in the group should be given the same name. Only the selected radio button in the group generates a name/value pair in the submitted data. Radio buttons require an explicit IHTMLInputElement::value property. reset Creates a button that resets the form's controls to their specified initial values. You can specify the label to display on this button just as you can for the Submit button. submit Creates a button that submits the form. Use the IHTMLInputButtonElement::value attribute to specify a label that is displayed on the button. The default label is application-specific. When the button is clicked, the associated control objects submit name/value pairs to the server. text Default. Creates a single-line text-entry control. Use the value in conjunction with the IHTMLInputTextElement::size and IHTMLInputTextElement::maxLength properties.
Returns S_OK if successful, or an error value otherwise.
Only the IHTMLInputElement::type property is writeable.
As of Microsoft Internet Explorer 5, the IHTMLInputElement::type property is read/write-once, but only when an input element is created with the IHTMLDocument2::createElement method and before it is added to the document.