开发者

Select which Right-Click menu items to display in IE

I'd like开发者_Python百科 to disable the 'Refresh' option in the right-click menu for internet explorer. Our application uses Javascript, ASP.Net and VB, but I'm sure it'll need to be done through Javascript. Any code snippets would be greatly appreciated.

Thanks


You can't selectively disable one menu item using javascript. But you can disable the entire context menu. Here is the simple code snippet.

 document.oncontextmenu = function() {
    return false;
  }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜