扫码关注官方订阅号
就是如图的东西,怎么才能屏蔽掉?我写了稍微一点了,希望能帮回答的人省点力气..
$(document).on("contextmenu", )
ringa_lee
if (window.Event) document.captureEvents(Event.MOUSEUP); function nocontextmenu() { event.cancelBubble = true event.returnValue = false; return false; } function norightclick(e) { if (window.Event) { if (e.which == 2 || e.which == 3) return false; } else if (event.button == 2 || event.button == 3){ event.cancelBubble = true event.returnValue = false; return false; } } document.oncontextmenu = nocontextmenu; // for IE5+ document.onmousedown = norightclick; //for all others
document.oncontextmenu = function(){ return false; }
恕我直言,屏蔽了也没特大用现在很多第三方浏览器都有禁止屏蔽……
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
恕我直言,屏蔽了也没特大用
现在很多第三方浏览器都有禁止屏蔽……