-
Notifications
You must be signed in to change notification settings - Fork 0
copyTextToClipboard
Mike Byrne edited this page Jan 25, 2022
·
2 revisions
Copies a string to the clipboard, if successful shows an alert with a message
- nothing
- textToCopy - required - string of text to copy
- successMsg - optional - string of text to display in the alert if successful, default says "Copied to clipboard"
- nothing
var stringToCopy = "Hello World";
copyTextToClipboard(stringToCopy);