Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All replaceNode


The replaceNode method replaces the object with another element. When a node is replaced, all values that are associated with the replaced object are removed. The replaceNode method is accessible at run time. If elements are removed at run time before the closing tag is parsed, areas of the document might not render.



An object that specifies the new element to replace the object.

Return Value

Returns a reference to the removed object.

© 2015 Microsoft