Monday, July 15, 2013

How to get the current URL in jQuery

To get the path, you can use:

var pathname = window.location.pathname;
 
http://stackoverflow.com/questions/406192/how-to-get-the-current-url-in-jquery 

No comments:

Post a Comment