JSFiddle - React, Tailwind, and code Playground
HTML
<script>
function test5(){
alert("oui");
var u = document.getElementById("id").value;
var url = "exceljsp.jsp";
url += "?id=" + u;
javascript:window.location.href = url;
}
</script>
<input type="image" src='excel.png' name="look excel table" onclick="test5();">