Retrieves the current element object and its content in HTML.
Syntax
HRESULT get_outerHTML( BSTR *p );
Parameters
- p
- Address of a string (BSTR) variable that receives the current element object, including its start and end tags, and the element's content in HTML. It can be any valid string that contains any combination of text and HTML tags.
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
Replaces the current element object and its content with the given HTML.
Syntax
HRESULT put_outerHTML( BSTR v );
Parameters
- v
- String (BSTR) that specifies the replacement HTML. It can be any valid string that contains any combination of text and HTML tags.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
When setting this property, the given string completely replaces the current element, including its start and end tags. 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.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0