I have the following code:
<li><a id="logout"
class="access button red"
href="/MyAccount/Access/Logout"
data-href="/MyAccount/Access/Logout"
title="Logout"><span class="smaller">LOGOUT</span></a></li>
When the user goes to this link it shows “/MyAccount/Access/Logout” in the bottom of the browser screen.
Can I make it so the link uses javascript to go to the new location? Something like:
$('#logout').click(function (e) {
???
???
e.preventDefault();
});
1 Answer