applyElement method

Makes the element either a child or parent of another element.

Syntax

IHTMLElement retVal = object.applyElement(apply, where);

Parameters

apply [in]

Type: IHTMLElement

A pointer to an IHTMLElement interface that becomes the child or parent of the current element.

where [in, optional]

Type: BSTR

A BSTR that specifies one of the following values.

outside

Default. Specified element becomes a parent of the current element.

inside

Specified element becomes a child of the current element, but contains all the child elements of the current element.

Standards information

There are no standards that apply here.

See also

Reference

IHTMLElement2::getAdjacentText

IHTMLElement2::insertAdjacentElement

IHTMLElement2::replaceAdjacentText

Conceptual

About the W3C Document Object Model