http://stackoverflow.com/questions/406192/get-current-url-in-javascript
To get the path, you can use:
var pathname = window.location.pathname; // returns path only
var url = window.location.href; // returns full url
http://stackoverflow.com/questions/406192/get-current-url-in-javascript
To get the path, you can use:
var pathname = window.location.pathname; // returns path only
var url = window.location.href; // returns full url