using (Html.BeginForm("logout", "angular", FormMethod.Post, new { id = "submitForm" })) { <button type="submit" id="logoutForm" class="btn btn-success">logout</button> } <a id="fgd" href="java<!-- no -->script:document.getElementById('logoutForm').submit()">Log off</a>
document.getElementById('logoutForm').click();
document.forms[0].submit();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)