如何使用JavaScript或jQuery清除Google Chrome,Mozilla Firefox和Safari中的剪贴板数据 [英] How to clear clipboard data in Google Chrome, Mozilla Firefox and Safari using JavaScript or jQuery

查看:212
本文介绍了如何使用JavaScript或jQuery清除Google Chrome,Mozilla Firefox和Safari中的剪贴板数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个网站。我想在使用JavaScript或jQuery查看我的网站时按下打印屏幕按钮时清除剪贴板数据。任何人都可以帮我解决这个问题。我在Internet Explorer中成功处理了这个问题。

I am developing a website. I want to clear the clipboard data when the print screen button is pressed while viewing my site by using JavaScript or jQuery. Can anyone please help me to solve this problem. I successfully handled this in Internet Explorer.

提前致谢...

推荐答案

你无法操纵由于安全原因,javascript剪贴板。但常见的方法是使用闪存......

You cannot manipulate the clipboard with javascript due to security reason. But the common way is to use flash...

阅读。它非常完整: http:// brooknovak .wordpress.com / 2009/07/28 / access-the-system-clipboard-with-javascript /

这篇关于如何使用JavaScript或jQuery清除Google Chrome,Mozilla Firefox和Safari中的剪贴板数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆