开发者

How to clear clipboard data in Google Chrome, Mozilla Firefox and Safari using JavaScript or jQuery

开发者 https://www.devze.com 2023-03-15 12:25 出处:网络
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 probl

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 h开发者_StackOverflow中文版andled this in Internet Explorer.

Thanks in advance...


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

Read that. It is very complete: http://brooknovak.wordpress.com/2009/07/28/accessing-the-system-clipboard-with-javascript/

0

精彩评论

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

关注公众号