当前位置:网站首页>网站页面禁止复制内容 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);
边栏推荐
- Flet教程之 12 Stack 重叠组建图文混合 基础入门(教程含源码)
- Summary of methods for finding intersection of ordered linked list sets
- 二叉树相关OJ题
- Starkware: to build ZK "universe"
- Single merchant v4.4 has the same original intention and strength!
- Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
- Solve the Hanoi Tower problem [modified version]
- JSON转MAP前后数据校验 -- 自定义UDF
- [61dctf]fm
- Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)
猜你喜欢

用键盘输入一条命令

If you can't afford a real cat, you can use code to suck cats -unity particles to draw cats

Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL

迁移/home分区

极坐标扇图使用场景与功能详解

【刷题篇】有效的数独

【刷題篇】鹅廠文化衫問題

怎样在电脑上设置路由器的WiFi密码

新春限定丨“牛年忘烦”礼包等你来领~

The database of the server is not connected to 200310060 "unknown error" [the service is up, the firewall is off, the port is on, and the netlent port is not connected]
随机推荐
[echart] resize lodash 实现窗口缩放时图表自适应
【深度学习】深度学习如何影响运筹学?
挖财股票开户安全吗?怎么开股票账户是安全?
sqlserver 做cdc 要对数据库性能有什么要求么
面对新的挑战,成为更好的自己--进击的技术er
How to install MySQL
Dare not buy thinking
Pspnet | semantic segmentation and scene analysis
Apiccloud cloud debugging solution
Raspberry pie 4B installation pytorch1.11
怎样在电脑上设置路由器的WiFi密码
Mongodb getting started Tutorial Part 04 mongodb client
Get ready for the pre-season card game MotoGP ignition champions!
阿掌的怀念
【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……
Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
Flet教程之 09 NavigationRail 基础入门(教程含源码)
Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
帮忙看看是什么问题可以吗?[ERROR] Could not execute SQL stateme
Solve the Hanoi Tower problem [modified version]