Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Inserts a new child node preceding the current, or the referenced, node in the document object model (DOM).
Syntax
HRESULT insertBefore( IHTMLDOMNode * newChild VARIANT refChild );
Parameters
- newChild
- Address of an IHTMLDOMNode interface that specifies the new child to be added.
- refChild
- Optional. Address of a variant that specifies the reference child to be added. This is used when the child is inserted before a reference node rather than the current node.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also
get_childNodes, removeChild, replaceChild
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.