querySelectorAll onClick

  window.addEventListener('DOMContentLoaded', function(event){
  document.querySelectorAll("a[href='https://api.whatsapp.com/send?phone=123']").forEach(function(e) {
      e.addEventListener('click', function(e) {
          alert('go_whatsapp');
      });
  });
  return false  
});