ClearEvents.js
资源名称:zfwz.rar [点击查看]
上传用户:luoweizhao
上传日期:2021-11-29
资源大小:15269k
文件大小:0k
源码类别:
OA系统
开发平台:
ASP/ASPX
- window.ClearEvent=function(){event.cancelBubble=false;var sSrcTagName=event.srcElement.tagName.toLowerCase();
- return (sSrcTagName=="textarea" || sSrcTagName=="input" || sSrcTagName=="select");}
- window.ClearKey=function(){event.cancelBubble=false;var iKeyCode=event.keyCode;return !(iKeyCode==78 && event.ctrlKey);}
- with (window.document){oncontextmenu=onselectstart=ondragstart=window.ClearEvent;onkeydown=window.ClearKey;}