当前位置:网站首页>Disable right-click, keyboard open console events
Disable right-click, keyboard open console events
2022-06-28 05:14:00 【CSDN_ thirty-three million nine hundred and one thousand five h】
<script>
window.onload = function() {
// Block keyboard events
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;
}
};
// Shield the right mouse button
document.oncontextmenu = function (){
return false;
}
}
</script>边栏推荐
- Feign remote call fallback callback failed, no effect
- 2022 safety officer-b certificate examination question bank and answers
- Sqlmap tool user manual
- Function reentry caused by Keil C51's data overlaying mechanism
- Voltage mode and current mode control of switching power supply
- Amino dye research: lumiprobe fam amine, 6-isomer
- msa. h: There is no such file or directory
- Organize the online cake mall project
- Qcom LCD commissioning
- 2022年安全员-A证考试题库及模拟考试
猜你喜欢

Feign remote call fallback callback failed, no effect

如何从零设计一款牛逼的高并发架构(建议收藏)

改性三磷酸盐研究:Lumiprobe氨基-11-ddUTP

metaRTC5.0编程之p2p网络穿透(stun)指南

SlicePlane的Heading角度与Math.atan2(y,x)的对应转换关系

电源插座是如何传输电的?困扰小伙伴这么多年的简单问题

Cgo+gsoap+onvif learning summary: 8. Summary of arm platform cross compilation operation and common problems

Docker安装Mysql5.7并开启binlog

MySQL export database dictionary to excel file

DH parameters of robotics and derivation using MATLAB symbolic operation
随机推荐
SlicePlane的Heading角度与Math.atan2(y,x)的对应转换关系
Function reentry caused by Keil C51's data overlaying mechanism
Opencv实现目标检测
[leetcode] 12. Integer to Roman numeral
2022西式面点师(高级)考试试题模拟考试平台操作
Voltage mode and current mode control of switching power supply
How high is the gold content of grade II cost engineer certificate? Just look at this
IP数据报的发送和转发过程
学习太极创客 — MQTT 第二章(六)MQTT 遗嘱
Extjs图书管理系统源码 智能化图书管理系统源码
如何学习可编程逻辑控制器(PLC)?
2022电力电缆判断题模拟考试平台操作
[JVM series] JVM tuning
基于微信小程序的婚纱影楼门户小程序
gorm事务体验
改性三磷酸盐研究:Lumiprobe氨基-11-ddUTP
Latest Windows version 5.0.14 of redis
2022年G3锅炉水处理复训题库模拟考试平台操作
msa.h:没有那个文件或目录
如何从零设计一款牛逼的高并发架构(建议收藏)