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.
- Returns S_OK if successful, or an error value otherwise.
- 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
IHTMLElement::put_innerText
HRESULT put_innerText( BSTR v );Sets the text between the start and end tags of the current element.
- Returns S_OK if successful, or an error value otherwise.
- 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
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.