在任何浏览器中设置剪贴板内容 [英] set clipboard content in any browser
问题描述
我需要在用户的剪贴板触发我的网页上的活动时设置。我知道每个浏览器都有不同的方法来做到这一点,所以你知道一个库或代码片段将实现这个跨浏览器?
本文可能会帮助您:
使用Javascript在Mozilla Firefox和IE上复制到剪贴板
基本想法是: p>
- 使用
window.clipboardData
进行Internet Explorer - 并为Mozilla使用一些Flash组件
似乎这不适用于Flash 10,
和/或这里是另一个解决方案 - 但似乎使用Flash 10,对于这一个): Zero Clipboard
I need to set my user's clipboard when they trigger an event on my webpage. I realize each browser has a different way to do this, so do you know of a library or code snippet that will achieve this cross-browser?
This article might help you with that : Copy to Clipboard with Javascript on Mozilla firefox and IE
The basic idea is to :
- use
window.clipboardData
for Internet Explorer - and use some flash component for Mozilla
Seems that this doesn't work with Flash 10, though, from some reports I've seen (never tried myself)
And/Or here is another solution (still using Flash -- but seems to be working with Flash 10, for this one) : Zero Clipboard
这篇关于在任何浏览器中设置剪贴板内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!