Is it possible to trigger mouse middle click event using Javascript?
Had the same question, did a lot of digging, and this is what I ended up using:
if ( window.CustomEvent ) {
var middleClick = new MouseEvent( "click", { "button": 1, "which": 2 });
jQuery(".selector")[0].dispatchEvent( middleClick );
}