如何在网页中禁止右键查看

2025-05-09 16:12:30

1、禁止腱懒幺冁鼠标左右键<SCRIPT language=javascript><!--if (window.Event)document.capture呶蓟鹭毵Events(Event.MOUSEUP);function nocontextmenu(){event.cancelBubble = trueevent.returnValue = false;return false;}function norightclick(e){if (window.Event){if (e.which == 2 || e.which == 3)return false;}elseif (event.button == 2 || event.button == 3){event.cancelBubble = true18 event.returnValue = false;19 return false;}}document.oncontextmenu = nocontextmenu; // for IE5+document.onmousedown = norightclick; // for all others//--></SCRIPT>

如何在网页中禁止右键查看

3、禁止选中代码<SCRIPT language=JavaScript>document.oncontextmenu=new Function("event.returnValue=false;");document.onselectstart=new Function("event.returnValue=false;");</SCRIPT>

如何在网页中禁止右键查看

5、防拷贝/复制代码<body leftmargin=0 topmargin=0 >

如何在网页中禁止右键查看

7、禁止网页另存为<noscript><iframe src="/*.html>";</iframe></noscript>

如何在网页中禁止右键查看

9、禁用右键<script>function stop(){return false;}document.oncontextmenu=stop;</script>

如何在网页中禁止右键查看
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢