Update copyToClipboard.md

This commit is contained in:
Angelos Chalaris
2018-04-10 18:38:56 +03:00
committed by GitHub
parent 3422468d8d
commit 342560c5f4

View File

@ -1,6 +1,6 @@
### copyToClipboard
⚠️ **Notice The same functionality can be easily implemented by using the new asynchronous Clipboard API, which is still experimental but should be used in the future instead of this snippet. Find out more about it [here](https://github.com/w3c/clipboard-apis/blob/master/explainer.adoc#writing-to-the-clipboard).**
⚠️ **NOTICE **The same functionality can be easily implemented by using the new asynchronous Clipboard API, which is still experimental but should be used in the future instead of this snippet. Find out more about it [here](https://github.com/w3c/clipboard-apis/blob/master/explainer.adoc#writing-to-the-clipboard).
Copy a string to the clipboard. Only works as a result of user action (i.e. inside a `click` event listener).