Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

createElementNS method

Creates an element from the specified namespace.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4Internet Explorer 9

 

Syntax


HRESULT retVal = object.createElementNS(pvarNS, bstrTag, newElem);

Parameters

pvarNS [in]

Type: VARIANT

A BSTR value that specifies the URI of the desired namespace.

bstrTag [in]

Type: BSTR

A BSTR value that contains the name of the desired element.

newElem [out, retval]

Type: HTMLElement

A reference to the IHTMLElement interface that contains the new element.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
S_OK

The operation completed successfully.

 

Standards information

Remarks

The IHTMLDocument7::createElementNS method is supported only for XML namespaces.

 

 

Community Additions

ADD
Show:
© 2015 Microsoft