JSFiddle - React, Tailwind, and code Playground

by enigmarm

HTML

<button onclick="openmail()">Open mail</button>

JavaScript

function openmail() {
    window.location.href = "mailto:test1@test.org"
    setTimeout(function() {
      console.log('2nd email');
      window.location.href = "mailto:test2@test.org"
    }, 3000);
  }