JSFiddle - React, Tailwind, and code Playground

HTML

<input id="myButton" type="button" value="Test"></input>

<div id="alert" style="display: none;">
    thanks the content has been submitted for review.
</div>

CSS

#alert {
    border: 1px solid;
    height: 20px;
    width: 400px;
    position: absolute;
    left: 150px;
    top: 40px;
}

JavaScript

document.getElementById("myButton").onclick=function(){showAlert()};

function showAlert() {
    document.getElementById("alert").style.display = "block";
    
    setTimeout(function() {
        // DO OTHER STUFF
    },5000);   // 5 secon
}