How can I use javascript to capture a click and send the page to a link?
<p>I have the following code:</p>

<pre><code>&lt;li&gt;&lt;a id="logout" 
            class="access button red"
            href="/MyAccount/Access/Logout"
            data-href="/MyAccount/Access/Logout"
            title="Logout"&gt;&lt;span class="smaller"&gt;LOGOUT&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>When the user goes to this link it shows "/MyAccount/Access/Logout" in the bottom of the browser screen. </p>

<p>Can I make it so the link uses javascript to go to the new location? Something like:</p>

<pre><code> $('#logout').click(function (e) {
            ???
            ???
            e.preventDefault();
        });
</code></pre>
