JSFiddle - React, Tailwind, and code Playground
by dmethvin
HTML
<div id="progress">Progress...</div>
<form method="GET" action="http://non-existent/">
<input type="submit" />
</form>
CSS
#progress {
display:block;
}
JavaScript
document.getElementsByTagName("form")[0].onsubmit = function(){
document.getElementById("progress").style.color = "red";
return true;
};