I need to use JavaScript to trigger a page to open in a new window when clicking the link. I've noticed that when you middle-click on the link in Firefox, you would open the current page in a new window instead of another page in a new window.
Note that I cannot do the following. This is because another application needs to read my code, and the link must be invoked via JavaScript.
<a href="http://www.google.ca" target="_blank">Link</a>
$('#link').click( function(event) {
event.preventDefault();
window.open( "http://www.google.ca", '_blank' );
});
<a href="" id="link" target="_blank">Middle Click This Link</a>