JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
    <a href="#mylink1" tabindex="-1">select this</a>
    <a href="#mylink2" tabindex="-1">select this</a>
    <a href="#mylink3" tabindex="-1">select this</a>
</div>

<a href="#begin" tabindex="-1">click here to begin selecting</a>

JavaScript

$('a[href="#begin"]').blur(function(e) {
  setTimeout(function(){console.log( $(document.activeElement).attr('href') );},0); // this will output: #begin
});