当前位置:网站首页>网站页面禁止复制内容 JS代码
网站页面禁止复制内容 JS代码
2022-07-05 16:12:00 【withkai44】
在你的网页位置添加上这部分js代码
document.onselectstart = new Function('return false');
document.oncontextmenu = new Function('return false');
if (window.sidebar) {
document.onmousedown = new Function('return false');
document.onclick = new Function('return true');
document.oncut = new Function('return false');
document.oncopy = new Function('return false');
}
document.addEventListener('keydown', function (e) {
if (e.keyCode === 83 && (navigator.platform.match('Mac') ? e.metaKey : e.ctrlKey)) {
e.preventDefault();
e.stopPropagation();
}
}, false);
边栏推荐
- [echart] resize lodash to realize chart adaptation when window is zoomed
- Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
- Facing new challenges and becoming a better self -- attacking technology er
- Win11提示无法安全下载软件怎么办?Win11无法安全下载软件
- Enter a command with the keyboard
- 數據訪問 - EntityFramework集成
- [team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
- 【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
- Get ready for the pre-season card game MotoGP ignition champions!
- Jarvis OJ Webshell分析
猜你喜欢
Jarvis OJ webshell analysis
Bs-xx-042 implementation of personnel management system based on SSM
Benji Bananas 会员通行证持有人第二季奖励活动更新一览
【刷题篇】鹅厂文化衫问题
Keras crash Guide
用键盘输入一条命令
Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
Summary of PHP pseudo protocol of cisp-pte
OneForAll安装使用
如何将mysql卸载干净
随机推荐
自己要有自己的坚持
Global Data Center released DC brain system, enabling intelligent operation and management through science and technology
StarkWare:欲构建ZK“宇宙”
怎样在电脑上设置路由器的WiFi密码
求解汉诺塔问题【修改版】
Quelques réflexions cognitives
[echart] resize lodash 实现窗口缩放时图表自适应
Binary tree related OJ problems
单商户 V4.4,初心未变,实力依旧!
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
[echart] resize lodash to realize chart adaptation when window is zoomed
How was the middle table destroyed?
服务器的数据库连不上了2003,10060“Unknown error“【服务已起、防火墙已关、端口已开、netlent 端口不通】
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
用键盘输入一条命令
Enter a command with the keyboard
DenseNet
Yarn common commands
Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
How to install MySQL