如何重新启动用户在javascript中拍摄屏幕截图 [英] how to restrinct user from taking a screen shot in javascript
本文介绍了如何重新启动用户在javascript中拍摄屏幕截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
是否有任何方式在javascript或jquery中限制用户屏幕截图我搜索了很多并且只得到了这个东西。
Hi there,
is there any way in javascript or jquery to restrict user from taking screen shot I searched much and got this thing only.
window.addEventListener("keyup",kPress,false);
function kPress(e)
{
var c=e.keyCode||e.charCode;
if (c==44)
{
alert("print screen");
}
}
谢谢
Thanks
推荐答案
想一想,你会看到它:如果用户在浏览器中看到某些内容,它已经在客户端。 限制任何事情都为时已晚。几乎没有任何意义。
-SA
Just think a bit, and you will see it: if a user sees something in the browser, its is already on the client side. It''s too late to "restrict" anything. And hardly may make any sense.
—SA
这篇关于如何重新启动用户在javascript中拍摄屏幕截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文