IHTMLDocument2::createElementIHTMLDocument2::createElement*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLDocument2::execCommandShowHelp
*Next Topic: IHTMLDocument2::put_onhelp

IHTMLDocument2::createElement


HRESULT createElement(
    BSTR eTag,
    IHTMLElement **newElem
);

Creates an instance of the element object for the specified tag. Only new IMG and OPTION objects can be created. Before they can be used, new objects must be explicitly added to their respective collections.

eTag
String value specifiying the type of element to create.
newElem
Address of a pointer to the IHTMLElement interface of the new element.


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