IHTMLElement::get_outerHTMLIHTMLElement::get_outerHTML*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLElement::put_outerHTML
*Next Topic: IHTMLElement::put_outerText

IHTMLElement::get_outerHTML


HRESULT get_outerHTML(
    BSTR *p
);

Retrieves the current element object and its content in HTML.

p
Address of a string 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 containing any combination of text and HTML tags.

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

See also put_outerHTML

Up Top of Page


IHTMLElement::put_outerHTML


HRESULT put_outerHTML(
    BSTR v
);

Replaces the current element object and its content with the given HTML.

v
String specifying the replacement HTML. It can be any valid string containing any combination of text and HTML tags.

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.

See also get_outerHTML


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