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&nu
The following are examples of useful code snippets that can be used – some of the examples use standard JavaScript functions and are not specific to jQuery:
See 8 Useful jQuery Snippets For URL’s & Querystrings.