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
Add a ment  | 

1 Answer 1

Reset to default 4

You 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/

本文标签: