--- title: copyToClipboard tags: browser,string,event,advanced firstSeen: 2017-12-31T11:40:33+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 --- Copies a string to the clipboard. Only works as a result of user action (i.e. inside a `click` event listener). - Create a new `