Get current URL with jQuery?
Asked 07 September, 2021
Viewed 1.8K times
  • 65
Votes

I am using jQuery. How do I get the path of the current URL and assign it to a variable?

Example URL:

http://localhost/menuname.de?foo=bar&number=0

30 Answer