Click to return to the Reusing Browser Technology home page    
IHTMLElement::get_outerHT...     IHTMLElement::get_parentE...     IHTMLElement Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLElement::get_outerText Method


Retrieves the outerText property of the current element object.

Syntax

HRESULT get_outerText(
    BSTR *p
);

Parameters

p
Address of a string (BSTR) variable that receives the text of the current element object. It can be any valid string.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLElement::put_outerText Method


Sets the outerText property of the current element object.

Syntax

HRESULT put_outerText(
    BSTR v
);

Parameters

v
String (BSTR) that specifies the new text for the current element object. It can be any valid string.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


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.