As PointZeroTwo details out in the reviews, the code could be enhanced so it will return a hit/failure consequence. You could see a demo on this jsFiddle. btn'); and it'll duplicate the articles of DOM with id toCopyElement to clipboard. This is often a snippet that duplicate the textual content https://devinmfxoj.myparisblog.com/40078383/an-unbiased-view-of-see-full-details