Copy to clipboard in JavaScript

孤街醉人 提交于 2019-12-04 09:39:34

You could try using the zeroclipboard library, which involves placing an invisible flash element on the page to do the actual copy of text to the clipboard.

Martijn Laarman

It is in Internet Explorer, but not in other browsers although support can be hacked together in other browsers by inserting a Flash file each time you want to do a copy. Not very useful I would say, as it imposes usability drawbacks as well.

If I remember correctly it is possible in the Internet Explorer (maybe the site must be in the "trusted" zone) but not in Firefox or Opera.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!