I have a button asp
<asp:button ID="cmdAvancarEndereco" runat="server"
cssclass="btn btn-success btn-lg" text="Avançar >">
</asp:button>
which has an event of VB
linked in click
Private Sub cmdAvancarEndereco_Click(sender As Object, e As EventArgs)
Handles cmdAvancarEndereco.Click
'evento
End Sub
But in the click of this button, I need to execute before the event cmdAvancarEndereco_Click
a javascript event:
var getCardToken = function () {
// evento
}
I tried to put this without success it goes straight to pro server:
document.getElementById("ContentPlaceHolder1_cmdAvancarEndereco")
.addEventListener("click", getCardToken);'
Any solution?