开发者

copy-paste using javascript

开发者 https://www.devze.com 2023-01-27 03:46 出处:网络
I have text in JS variable and I want that to be copied in clipboard on a button\'s cl开发者_开发知识库ick.

I have text in JS variable and I want that to be copied in clipboard on a button's cl开发者_开发知识库ick. I need this in Javascript and code must not be browser-specific.


ZeroClipboard works fully within the browser's security restrictions. It uses Flash to copy to the clipboard, accessing a Flash movie from JavaScript. To work around Flash's own security limitation, it must be overlaid on top of some element of your page (e.g. a button) that the user will have to click. Read its instructions page for more details.

0

精彩评论

暂无评论...
验证码 换一张
取 消