As far as I know clipboard.js copies text only when button or link is clicked. Is there other way to copy text?
Asked
Active
Viewed 100 times
1 Answers
0
Clipboard.js creator here.
Due to security restrictions imposed by browser vendors, user interaction is required in order copy/cut to work. A simulated click event using JavaScript does not work as this would enable clipboard poisoning.

Zeno Rocha
- 3,226
- 1
- 23
- 27
-
Thanks for the explanation – Maxim Apr 18 '17 at 08:03