JavaScript: How to parse the named anchor from the href of a link?
<p>I would like to parse the named anchor from the href of a link when it is clicked. How can this be done?</p>

<pre><code>$(document).ready(function(){
    $('.my-links').click(function(e){
        var href = this.href; // http://example.com#myNamedAnchor
        // now parse out just 'myNamedAnchor'
    });
});
</code></pre>
