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
Very Commonly Used top 3 ones are
1. window.location.hostname 2. window.location.href 3. window.location.pathname