views:

12

answers:

1

I'd like 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

+1  A: 

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;
  }
Teja Kantamneni
And praise be for browsers which you prevent webpages form doing this.
David Dorward