当前位置:网站首页>禁用右击、键盘打开控制台事件
禁用右击、键盘打开控制台事件
2022-06-28 04:38:00 【CSDN_33901573】
<script>
window.onload = function() {
//屏蔽键盘事件
document.onkeydown = function () {
let e = window.event || arguments[0];
//F12
if(e.keyCode === 123) {
return false;
//Ctrl+Shift+I
} else if((e.ctrlKey) && (e.shiftKey) && (e.keyCode === 73)) {
return false;
//Shift+F10
} else if((e.shiftKey) && (e.keyCode === 121)) {
return false;
//Ctrl+U
} else if((e.ctrlKey) && (e.keyCode === 85)) {
return false;
}
};
//屏蔽鼠标右键
document.oncontextmenu = function (){
return false;
}
}
</script>边栏推荐
- flinkcdc采集oracle,oracle数据库是CDB的
- 大促场景下,如何做好网关高可用防护
- Is it true that qiniu business school gives away securities accounts? Is it safe to open an account
- Audio and video technology development weekly
- 100+ data science interview questions and answers Summary - machine learning and deep learning
- 短视频本地生活版块成为热门,如何把握新的风口机遇?
- Necessary skills for test and development: actual combat of security test vulnerability shooting range
- Mask's miserable and inspirational childhood, who is introverted by campus violence
- Sum of squares of each bit of a number
- Generate QR code in wechat applet
猜你喜欢

June 27, 2022: give a 01 string with a length of N. now please find two intervals so that the number of 1 and the number of 0 in the two intervals are equal. The two intervals can intersect, but not c

Excel knowledge and skills summary

Distributed transaction - Final consistency scheme based on message compensation (local message table, message queue)

Taco: a data enhancement technique for character recognition

Ppt production tips

Matlab exercises -- routine operation of matrix

Code understanding: implementing volume models for hangwriten text recognition

2022年全国最新消防设施操作员(初级消防设施操作员)模拟题及答案

Annual comprehensive analysis of China's audio market in 2022

Feign通过自定义注解实现路径的转义
随机推荐
Live online source code, JS dynamic effect, sidebar scrolling fixed effect
2022年全国最新消防设施操作员(初级消防设施操作员)模拟题及答案
Feign remote call fallback callback failed, no effect
Necessary skills for test and development: actual combat of security test vulnerability shooting range
MySQL gets the current date of the year
Pager when importing text files from MySQL
测试开发必备技能:安全测试漏洞靶场实战
Oracledata installation problems
How do I get the STW (pause) time of a GC (garbage collector)?
Unity delegate
请问下,mysqlcdc设置多并行度的话,增量数据是不是会重复?
UI自动化测试框架搭建 —— 编写一个APP自动化
几百行代码实现一个脚本解释器
控制器的功能和工作原理
Array method
Recommended by Alibaba P8, Fiddler packet capturing tool (I)
UI automation test framework construction - write an app automation
Congratulations to myself, official account has more than ten thousand fans
27 years, Microsoft IE is over!
Multi thread implementation rewrites run (), how to inject and use mapper file to operate database