IHTMLElement::get_innerTextIHTMLElement::get_innerText*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLElement::put_innerText
*Next Topic: IHTMLElement::put_outerHTML

IHTMLElement::get_innerText


HRESULT get_innerText(
    BSTR *p
);

Retrieves the text between the start and end tags of the current element.

p
Address of a string variable that receives the text. It can be any valid string.

When setting this property, the given string completely replaces the existing content of the element.

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

See also put_innerText

Up Top of Page


IHTMLElement::put_innerText


HRESULT put_innerText(
    BSTR v
);

Sets the text between the start and end tags of the current element.

v
String specifying the text. It can be any valid string.

When setting this property, the given string completely replaces the existing content of the element.

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

See also get_innerText


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.