//手动触发回车键
$(window).on("keydown", function(e){
var ev = document.all ? window.event : e;
if(ev.keyCode==13) {
window.location.href = "VRegister.html"
}
})
$(window).on({
contextmenu: function(){//禁止右击
return false;
},
dragstart: function(){//禁止拖拉
return false;
},
selectstart: function(){//文字禁止鼠标选中
document.selection.empty();
// return false;
},
copy: function(){//禁止复制文本
document.selection.empty();
},
beforecopy: function(){
return false;
},
mouseup: function(){//禁止点击
return false
}
})
//禁止鼠标事件/点透效果
为样式添加
pointer-events:none;