In its recent version, Edge shows a context menu when selecting text. Is there any way to prevent this behaviour with JavaScript? I tried
window.oncontextmenu = e => {e.preventDefault();}; but this wasn't successful.
In its recent version, Edge shows a context menu when selecting text. Is there any way to prevent this behaviour with JavaScript? I tried
window.oncontextmenu = e => {e.preventDefault();}; but this wasn't successful.
If you don't need to use this feature in Edge, you can disable this menu via specific setting in Edge.
Just follow these steps:
edge://settings/appearance in Edge.Context menus section.Show mini menu when selecting text.Something like this:
In addition, you can also disable this feature on specific sites, depending on your needs.