Home  >  Forum  >  JavaScript
Post New Query

How do I get the path of the current URL


joined on
November 07,2013
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?
joined on
March 15,2013
Replied on November 08,2013

use this, may its help you...
var pathname = windows.location.pathname;

joined on
March 16,2013
Replied on November 10,2013

var url = window.location.href

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us