The Document object's importNode() method creates a copy of a inserted into the current document later.
importNode()
MDN Reference