My url will look like this:
http://www.example.com/category/action
How can I get the word \"action\". This last part of the url (after the last forward slash
One way:
var lastPart = url.split("/").pop();