How to get the last part of a string in JavaScript?
<p>My url will look like this:</p>

<p><a href="http://www.example.com/category/action" rel="nofollow">http://www.example.com/category/action</a></p>

<p>How can I get the word "action". This last part of the url (after the last forward slash "/") will be different each time. So whether its "action" or "adventure", etc. how can I always get the word after the last closing forward slash?</p>
