Get the current URL path with JavaScript and jQuery. Also, get the individual components of the path.
Code:
🔗 http://codepen.io/beaucarnes/pen/qRoY...
More information:
🔗 https://css-tricks.com/snippets/javas...
🔗 http://stackoverflow.com/questions/40...
Twitter: @jsnugget
JS Nuggets: Brisk JavaScript training and tips