Read and write to the clipboard with the modern Clipboard API 
async/await, permission-aware, and way cleaner than execCommand.
⋅ Supports text, HTML, and images
⋅ Works in secure contexts (HTTPS)
⋅ No Flash. No hacks.
Learn more 
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API