po kliknięciu jQuery
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
Condemned Crayfish
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
<input type="button" value="Forgot Password" onclick="window.location.href('@Url.Action("ForgotPassword","Account")')" />