Posted: 9 Nov 2018 11:34 EST Last activity: 19 Nov 2018 9:58 EST
How to disable Mouse middle click (middle button) across all browsers?
Greetings. There is a code to disable right click but i am interested in disabling mouse middle click and we use edge, i am not sure if edge supports auxclick, can some one with similar requirement let me know if you have a solution?
You could leverage a similar approach seen here and listen for the middle click button event, and just return or preventDefault() or something equivalent to prevent the middle click from executing its default action.