Retrieves the text between the start and end tags of the current element.
Syntax
HRESULT get_innerText( BSTR *p );
Parameters
- p
- Address of a string (BSTR) variable that receives the text. It can be any valid string.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
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.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
Sets the text between the start and end tags of the current element.
Syntax
HRESULT put_innerText( BSTR v );
Parameters
- v
- String (BSTR) that specifies the text. It can be any valid string.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
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.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0