diff --git a/README.md b/README.md index d02308743..ff6785450 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ * [`arrayToHtmlList`](#arraytohtmllist) * [`bottomVisible`](#bottomvisible) +* [`copyToClipboard`](#copytoclipboard) * [`currentURL`](#currenturl) * [`detectDeviceType`](#detectdevicetype) * [`elementIsVisibleInViewport`](#elementisvisibleinviewport) @@ -1483,6 +1484,48 @@ bottomVisible(); // true
[⬆ Back to top](#table-of-contents) +### copyToClipboard + +Copy a string to the clipboard. Only works as a result of user action (i.e. inside a `click` event listener). + +Create a new `