Last segment of URL
<p>How do I get the last segment of a url?  I have the following script which displays the full url of the anchor tag clicked:</p>

<pre><code>$(".tag_name_goes_here").live('click', function(event)
{
    event.preventDefault();  
    alert($(this).attr("href"));
});
</code></pre>

<p>If the url is</p>

<pre><code>http://mywebsite/folder/file
</code></pre>

<p>how do I only get it to display the "file" part of the url in the alert box?</p>
