[This documentation is preliminary and is subject to change.]
Inserts the given HTML text into the element at the location.
HRESULT retVal = object.insertAdjacentHTML(where, html);
There are no standards that apply here.
- where [in]
BSTR that specifies where to insert the HTML text, using one of the following values:
Inserts html immediately before the object.
Inserts html after the start of the object but before all other content in the object.
Inserts html immediately before the end of the object but after all other content in the object.
Inserts html immediately after the end of the object.
- html [in]
BSTR that specifies the HTML text to insert. The string can be a combination of text and HTML tags. This must be well-formed, valid HTML or this method will fail.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
If the text contains HTML tags, the method parses and formats the text as it is inserted.
You cannot insert text while the document is loading. Wait for the HTMLFrameSiteEvents::onload event to fire before attempting to call this method.
Build date: 6/6/2012