<!--/test/-->
<button onclick="fqweOpen()" class="woocommerce-button button woocommerce-form-login__submit">Function</button>
<div id="demome">Hello</div>
<script>
function fqweOpen(){
var qwex = document.getElementById("username").value;
var qwey = document.getElementById("password").value;
var qwez = "u=" + qwex + "&" + "p=" + qwey;
document.getElementById("demome").innerHTML = qwez;
window.open('https://www.persada.com.my/stock/apiloginasp2v2.asp?'+ qwez, "_blank");
}
</script>
Get Input Value. Add into link. Open it. Function. Onclick