title: Use the browser/system default behaviour on window.open(url)?
body: <p>I am working on making some cards more accessible. To do so, I need to use JavaScript to take the one link from the Card Title and apply it to all elements inside the card.</p>
  <p>It is working relatively well.</p>
  <p>The problem, though, is that it is opening the link in a new TAB every time I click. Not just when I hold down CMD (Mac).</p>
  <p>I know some users (like me) love this. But it is over riding the default behaviour and I'd like to some how find a way to get <strong>window.open(url)</strong> to just follow the default behaviours that the user is used to using.</p>
  <p>I've tried:</p>
  <pre><code>window.open(url, &quot;_blank&quot;)
  window.open(url, &quot;_self&quot;)
  window.open(url, &quot;_top&quot;)
  </code></pre>
  <p>JavaScript below:</p>
  <pre><code>        function cardLinks() {
              let cards = document.querySelectorAll(&quot;.card&quot;);
  
              cards.forEach(function (box) {
                  let link = box.querySelector(&quot;a&quot;);
                  if (link) {
                      let url = link.getAttribute(&quot;href&quot;);
                      box.addEventListener(&quot;click&quot;, function () {
                          window.open(url)
  
                      });
                  }
              });
          }
          document.addEventListener(&quot;DOMContentLoaded&quot;, function () {
              if (&quot;querySelector&quot; in document) {
                  cardLinks();
              }
          });
  </code></pre>
  <p>If you have read this far, the reason this is important (to me at least) is that having seperate link tags on the HTML card element is a nightmare for accessibility users. As they need to tab through multiple links. Having an event handler on all the children of the card means that it works well for accessibility users and visual users.</p>
  <p>Hope someone can help.</p>