JSFiddle - React, Tailwind, and code Playground

by ChrisStanyon

HTML

<a href="#" title="Access abcd website" target="_blank" onClick="return myFunction()">Click Here to go to ABCD Website</a>

JavaScript

function myFunction() {
    if (confirm("Are you sure you want to logoff and go to ABCD website?")) {
        console.log("Logging Off");        
    } else {
        return false;
    }
}