JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" id="btn-delete">Delete</a>

CSS

a#btn-delete {
    background: #eee;
    border: 1px solid #ccc;
    color: #666;
    display: block;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    width: 120px;
}

JavaScript

//window.onload = function() {
    var btnDelete = document.getElementById('btn-delete');
    btnDelete.onclick = function() {
        var message = 'Are you sure you want to delete the group?';
        if (confirm(message)) {
            // delete something...
        }
    }
//};