Copy to clipboard in javascript

Is it even possible to change the user clipboard via JavaScript?

I want them to click a given point on the map and add the position coordinates to the clipboard.

I still assume this is not possible for JavaScript.

+4
source share
3 answers

You can try using the zeroclipboard library, which involves placing an invisible flash element on the page to actually copy text to the clipboard.

+10
source

This is in Internet Explorer, but not in other browsers, although support can be hacked together in other browsers by inserting Flash every time you want to make a copy. Not very useful, I would say, since it also imposes usability flaws .

+2
source

If I remember correctly, this is possible in Internet Explorer (perhaps the site should be in the "trusted" zone), but not in Firefox or Opera.

+1
source

All Articles