admin管理员组文章数量:1403343
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.
Thanks in advance...
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.
Thanks in advance...
Share Improve this question edited May 9, 2018 at 22:29 BBaysinger 6,89714 gold badges77 silver badges146 bronze badges asked Jun 27, 2011 at 13:05 ArunArun 1,7049 gold badges26 silver badges41 bronze badges 3- Check out this question. It should have all the information you need. stackoverflow./questions/400212/… – theduke Commented Jun 27, 2011 at 13:08
- I would really like to know how you did this with javascript in IE maybe you could show some code? – daniel.herken Commented Jun 27, 2011 at 13:14
- @megaperlz, there is a window.clipboardData object defined in IE family browsers. – Baptiste Pernet Commented Jun 27, 2011 at 13:27
1 Answer
Reset to default 4You cannot manipulate the clipboard with javascript due to security reason. But the mon way is to use flash...
Read that. It is very plete: http://brooknovak.wordpress./2009/07/28/accessing-the-system-clipboard-with-javascript/
本文标签:
版权声明:本文标题:How to clear clipboard data in Google Chrome, Mozilla Firefox and Safari using JavaScript or jQuery - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744400883a2604456.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论