Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Retrieves the HTML between the start and end tags of the current element.
Syntax
HRESULT get_innerHTML( BSTR *p );
Parameters
- p
- Address of a string variable that receives the HTML. This can be any valid string containing any combination of text and HTML tags.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
When setting this property, the given string completely replaces the existing content of the element. If the string contains HTML tags, the string is parsed and formatted as it is placed into the document.
You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.
See Also
put_innerHTML
Sets the HTML between the start and end tags of the current element.
Syntax
HRESULT put_innerHTML( BSTR v );
Parameters
- v
- String specifying any combination of text and HTML tags.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
When setting this property, the given string completely replaces the existing content of the element. If the string contains HTML tags, the string is parsed and formatted as it is placed into the document.
You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.
See Also
get_innerHTML, IHTMLElement
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.