Retrieves the initial contents of a password or text control or the TEXTAREA element.
Syntax
HRESULT get_defaultValue( BSTR *p );
Parameters
- p
- Address of a string (BSTR) variable that receives the initial contents of an INPUT type=text element.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This value can be changed programmatically but has no effect on the appearance, or on how forms are submitted.
Sets the initial contents of a password or text control or the TEXTAREA element.
Syntax
HRESULT put_defaultValue( BSTR v );
Parameters
- v
- String (BSTR) that specifies the initial contents of an INPUT type=text element to set.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This value can be changed programmatically but has no effect on the appearance, or on how forms are submitted.