一:直接在body添加属性
oncontextmenu:这个是点击鼠标右键是否显示面板
onselectstart:鼠标能否选中文本
oncopy:用户执行copy时候操作
二:js实现
document.oncontextmenu = function(){ return false; }document.onkeydown = function(){ if (event.ctrlKey && window.event.keyCode==67){ return false; } }document.body.oncopy = function (){ return false; }//不建议连选中文本都不行document.onselectstart = function(){ //return false;}
免费试用尝鲜
贴心会员服务
服务可用性
数据安全保障
全年不间断在线
工作时间:早上9:00-下午6:30
河南快米云网络科技有限公司
公安备案编号:41010302002363
Copyright © 2010-2023 All Rights Reserved. 地址:河南自由贸易区开封片区经济开发区宋城路122号