Get current URL with JavaScript (and jQuery)

Опубликовано: 20 Октябрь 2024
на канале: JS Nuggets
4,426
54

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