如何使用javascript在所有浏览器中禁用打印屏幕按钮 [英] how to disable print screen button in all browser using javascript

查看:93
本文介绍了如何使用javascript在所有浏览器中禁用打印屏幕按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我看看如何使用javascript在所有浏览器中禁用打印屏幕按钮。

please help me how to disable print screen button in all browser using javascript.

推荐答案

你不能。无论您使用脚本执行什么操作,用户都可以捕获屏幕。如果你能以某种方式阻止捕获屏幕,那将违背一些非常基本的用户权利。即使用户使用您提供的某些内容,这也是用户的屏幕,而不是您的。



-SA
You cannot. The user can capture the screen no matter what you do with your scripts. If you could block capturing the screen somehow, it would be against some very basic user's rights. Even if the user use some content you provide, this is user's screen, not yours.

—SA

这篇关于如何使用javascript在所有浏览器中禁用打印屏幕按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆