Open all external links in a new window

var externalLinks = document.querySelectorAll('a');

function handleExternalLinks(e) {

externalLinks.forEach(function(externalLink) {
  if( !== {
    externalLink.addEventListener('click', handleExternalLinks);

What next?

You can read another one of my posts or just go in the kitchen and make yours a drink or whatever you like…
Ah, by the way… you can bring me also a cup of coffee. ;)