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;
}
精彩评论