All of the questions I\'ve seen on how to detect a middle mouse click in JavaScript are related to jQuery, but I\'m wondering how I can detect middle mouse button clicks wit
The code below could help you. It can detect which mouse button the user clicked. e.which == 2 is for the middle button.
e.which == 2