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

前端 未结 1 873
北恋
北恋 2021-01-22 21:08

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

相关标签:
1条回答
  • 2021-01-22 21:15

    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 讨论(0)
提交回复
热议问题