Copy clipboard using javascript

Possible duplicate:
How to copy to clipboard in javascript?

I want that when my users click on the link next to the text field, the contents of the text field is copied to the clipboard. How can i do this?

+4
source share
2 answers

Usually you cannot do this in JavaScript for security restrictions. There are some excellent cross-browser ways to accomplish this.

+2
source

Source: https://habr.com/ru/post/1337013/


All Articles