JS屏蔽右键菜单
2013-12-18 00:00
288 查看
摘要: JS屏蔽右键菜单
方法一:
方法二:
方法一:
<script type="text/javascript"> //屏蔽右键菜单 document.oncontextmenu = function (event){ if(window.event){ event = window.event; }try{ var the = event.srcElement; if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){ return false; } return true; }catch (e){ return false; } } </script>
方法二:
$(document).bind("contextmenu", function (e) {return false;});
相关文章推荐
- js实现浏览器右键菜单,屏蔽默认菜单
- JS 屏蔽右键菜单
- JS 屏蔽右键菜单
- 屏蔽右键菜单+右键事件 js
- JS屏蔽右键菜单和禁止刷新F5
- js屏蔽浏览器右键菜单,粘贴,复制,剪切,选中(转)
- js屏蔽右键菜单代码
- JS 屏蔽右键菜单 .
- JS 屏蔽右键菜单
- JS屏蔽右键菜单和禁止刷新F5
- js屏蔽右键菜单
- 屏蔽右键菜单(JS)
- js如何用判断鼠标的右键还是左键,屏蔽右键菜单
- js屏蔽浏览器右键菜单,粘贴,复制,剪切,选中
- 禁止页面复制功能 js禁止复制 禁用页面右键菜单 屏蔽 F5 刷新键
- js屏蔽右键 显示菜单或者选择页面上的信息(FF、IE均能用)
- js屏蔽鼠标右键默认事件以实现自定义菜单
- JS屏蔽Cognos报表右键菜单
- js屏蔽鼠标右键菜单
- js屏蔽右键菜单,鼠标选中,兼容IE,FireFox