Writing to the Clipboard in JavaScript
The most basic use case, writing a bit of text to the user’s clipboard, is mercifully easy. But there is plenty more to know. Did you know writing image data to the clipboard ONLY works with PNG?
The most basic use case, writing a bit of text to the user’s clipboard, is mercifully easy. But there is plenty more to know. Did you know writing image data to the clipboard ONLY works with PNG?
While it’s a bit more common to *write* to the clipboard, JavaScript can also read from it. Plain text is pretty simple, while multimedia content is a bit more complex.
Did you know? Frontend Masters Donates to open source projects. $313,806 contributed to date.