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
Check out the split method, it does what you want: http://www.w3schools.com/jsref/jsref_split.asp