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.
Returns a reference to the object that invoked the method.