Click to return to the Reusing Browser Technology home page    
IHTMLInputElement::get_de...     IHTMLInputElement::get_di...     IHTMLInputElement Interfa...    
Web Workshop  |  Reusing Browser Technology

IHTMLInputElement::get_defaultValue Method


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.


IHTMLInputElement::put_defaultValue Method


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.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.