JSFiddle - React, Tailwind, and code Playground

by Norlihazmey Ghazali

HTML

<a href="#" onclick="ConfirmDelete();">Go</a>

JavaScript

function ConfirmDelete(e) {
  if (confirm("Are you sure you want to delete?")) {
    location.href = "adminDelete.php";
  }
}