JSFiddle - React, Tailwind, and code Playground
HTML
<a href="#" id="hidden_link" target="_blank">hidden</a>
<input type="button" id="send" value="send"/>
JavaScript
$("#send").click(function(){
var hiddenLink = $("#hidden_link");
hiddenLink.attr("href","http://www.ebay.in/");
console.log("came here1")
hiddenLink[0].click();
})