Solution: JavaScript Copy To Clipboard Text With CSS, Copy On Click Program. Use Document.execCommand('copy') to copy the contents of the