How to use the Clipboard API to Cut, Copy, and Paste in JavaScript
Until 2020, implementing cross-browser cut, copy, and paste options in web apps required convoluted synchronous document.execCommand() code which rarely worked as expected. This is now deprecated in favor of a new asynchronous Clipboard API. Support ...
blog.craigbuckler.com7 min read