简体   繁体   中英

Select which Right-Click menu items to display in IE

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

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;
  }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM