Home  >  Forum  >  JavaScript
Post New Query

How do I get the path of the current URL



Asked on November 07, 2013
I am using jQuery. How do I get the path of the current URL and assign it to a variable?



Replied on November 08, 2013
use this, may its help you...
var pathname = windows.location.pathname;




Replied on November 10, 2013
var url = window.location.href

Write Answer







©2019 concretepage.com | Privacy Policy | Contact Us