Seemingly, you can\'t (yet) programmatically copy an image to the clipboard from a JavaScript web app?
I have tried to copy a text in clipboard , and it\'s worked.<
I searched the internet and couldn't find a solution to this so I went ahead and experimented. Successfully worked across all browsers:
The HTML I'm using for testing is:
The JavaScript/jQuery Code looks like this:
Have uploaded on GITHub as well: https://github.com/owaisafaq/copier-js