JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input type="submit" onclick="return submitForm()"/>
</form>
JavaScript
function submitForm() {
return confirm('Rollback deletion of candidate table?');
}
<form>
<input type="submit" onclick="return submitForm()"/>
</form>
function submitForm() {
return confirm('Rollback deletion of candidate table?');
}