Copy to clipboard
Possible Duplicates:
How to Copy to Clipboard in JavaScript?
How to copy text to clipboard in Firefox 3.5?
Hi,
A link has a anchor text, when i click on it, that anchor text should be copied to clipboard, and the link should open in new window. How can this be done in cross-browser way (especially firefox)? Thanks
看看这个链接:我如何在JavaScript中复制到剪贴板?
You can't really do it with JavaScript but you can do it with flash (which you can trigger with JavaScript). The downside of that: If the user has no Flash plugin, it doesn't work.
Here is a script that does the trick: http://cfruss.blogspot.com/2009/01/copy-to-clipboard-swf-button-cross.html
链接地址: http://www.djcxy.com/p/19730.html上一篇: 如何在JSF中实现复制到剪贴板按钮?
下一篇: 复制到剪贴板