IHTMLElement::insertAdjacentTextIHTMLElement::insertAdjacentText*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLElement::insertAdjacentHTML
*Next Topic: IHTMLElement::get_parentTextEdit

IHTMLElement::insertAdjacentText


HRESULT insertAdjacentText(
    BSTR where,
    BSTR text
);

Inserts the given text into the element object at the given place. The method inserts the text as plain text.

where
String specifying where to insert the text. Can be one of these strings:
BeforeBegin Inserts the text immediately before the element.
AfterBegin Inserts the text after the start of the element but before all other content in the element.
BeforeEnd Inserts the text immediately before the end of the element but after all other content in the element.
AfterEnd Inserts the text immediately after the end of the element.
text
String specifying the text to insert.

You cannot insert text while the document is loading. Wait for the onload event before attempting to call this method.


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