IHTMLElement::get_innerHTMLIHTMLElement::get_innerHTML*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLElement::put_innerHTML
*Next Topic: IHTMLElement::put_innerText

IHTMLElement::get_innerHTML


HRESULT get_innerHTML(
    BSTR *p
);

Retrieves the HTML between the start and end tags of the current element.

p
Address of a string variable that receives the HTML. This can be any valid string containing any combination of text and HTML tags.

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

Up Top of Page


IHTMLElement::put_innerHTML


HRESULT put_innerHTML(
    BSTR v
);

Sets the HTML between the start and end tags of the current element.

v
String specifying any combination of text and HTML tags.

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


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