Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining swapNode swapNode


The swapNode method exchanges the location of two objects in the document hierarchy. This 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.



Element that specifies the existing element.

Return Values

Returns a reference to the object that invoked the method.

© 2015 Microsoft