屏蔽右键菜单代码(所有浏览器)
2014-07-23 16:47
351 查看
<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>
相关文章推荐
- 网页设计常用代码精选,如屏蔽【复制、选择、右键菜单】等...
- 禁止另存网页、屏蔽选中、粘贴、复制、剪切、右键菜单程序代码
- js实现浏览器右键菜单,屏蔽默认菜单
- JS--屏蔽浏览器右键菜单
- js屏蔽右键菜单代码
- 网页防复制,禁止文字选中,禁止右键菜单js代码,兼容大部分浏览器方法
- 屏蔽网站右键菜单和选择功能 一行代码搞定
- 4.js屏蔽浏览器鼠标右键菜单
- 浏览器屏蔽右键及禁止复制代码
- 屏蔽浏览器右键菜单
- 手机浏览器中屏蔽img的系统右键菜单context menu
- 实现右键屏蔽菜单的代码
- javascript右键菜单(所有浏览器)
- 谷歌(Chrome)浏览器中快速解除网页屏蔽鼠标右键、复制的方法/代码
- js屏蔽浏览器右键菜单,粘贴,复制,剪切,选中
- js屏蔽浏览器右键菜单,粘贴,复制,剪切,选中(转)
- 屏蔽浏览器右键菜单功能,自定义右键菜单(兼容IE8)
- 局部屏蔽浏览器右键菜单
- js 屏蔽浏览器右键菜单
- js屏蔽浏览器右键菜单