I need your help in one question that how to disable the middle mouse click on any link to open a new tab in IE 7,8,9. I have tried many thing like
return
None of the answers above worked for me. According to MDN the auxclick event is the proper way to do this.
auxclick
The following code will prevent the middle click behaviour on the entire page.
window.addEventListener("auxclick", (event) => { if (event.button === 1) event.preventDefault(); });