I know I can use window.location.pathname to return a url, but how do I parse the url?
I have a url like this: http://localhost/messages/mine/9889 and I\'m trying to
You could use the string.split('/') function to create an array of items to check otherwise there are several jQuery plugins that parse the url eg
http://projects.allmarkedup.com/jquery_url_parser/