Tag: copy-paste

59 votes
30 answers
2.4K views
How do I copy to the clipboard in JavaScript?

What is the best way to copy text to the clipboard (multi-browser)? I have tried: function copyToClipboard(tex

avatar
Yolando
0 1 0 9
asked 07 September, 2021