JSFiddle - React, Tailwind, and code Playground

HTML

<a class="js-a1" href="new.html" target="_blank">this is a link</a>
<a class="js-a2" href="another.html" target="_blank">this is another link</a>

JavaScript

$('.js-a1').click(function (e) {
  $('.js-a2').click();
  e.preventDefault();
});

// native way to add event handler on a.js-a2
document.getElementsByTagName('a')[1].addEventListener('click', function() { alert('2'); return false; }, false);

// event handler registered using jQuery on a.js-a2
$('.js-a2').click(function (e) {
    alert('yes');
    e.preventDefault();
});