JSFiddle - React, Tailwind, and code Playground

by Yuriy Petrichenko

HTML

<a href="https://google.com" target="_blank">
Go with delay
</a>

JavaScript

const a = document.querySelector('a');

        a.addEventListener("click", (e) => {
          e.preventDefault();
          const link = e.target.href;

          setTimeout(() => {
             window.open(link)
          }, 1000)
        })