Travis build: 1932

This commit is contained in:
30secondsofcode
2018-04-10 15:42:43 +00:00
parent a2e819d57d
commit 3d172dfb58
2 changed files with 3 additions and 1 deletions

View File

@ -2953,6 +2953,8 @@ bottomVisible(); // true
### copyToClipboard ![advanced](/advanced.svg)
⚠️ **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).
Create a new `<textarea>` element, fill it with the supplied data and add it to the HTML document.