Clipboard.writeText() - Web APIs | MDN
The interface's property writes the specified text string to the system clipboard. Text may be read back using either or . The "clipboard-write" permission of the Permissions API, is granted automatically to pages when they are in the active tab. A which is resolved once the clipboard's contents have been updated.
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText

Unblocking clipboard access
Safer, unblocked clipboard access for text and images * Updated Over the past few years, browsers have used document.execCommand() for clipboard interactions. Though widely supported, this method of cutting and pasting came at a cost: clipboard access was synchronous, and could only read and write to the DOM.
https://web.dev/async-clipboard/


Seonglae Cho