JSFiddle - React, Tailwind, and code Playground
HTML
<input value="press" type="button" onclick="test()">
<script>
alert ("Home");
</script>
JavaScript
$(document).ready(function(){
function test()
{
alert("Test1");
window.location.reload(true);
}
})