0

As far as I know clipboard.js copies text only when button or link is clicked. Is there other way to copy text?

Maxim
  • 243
  • 3
  • 18

1 Answers1

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