How to get url of current page in jquery in Jquery Syntax of JQuery Examples
4082 Views
Syntax
// To get the path address of the Url
var pathname = window.location.pathname;
// /about/home.aspx
// To get the complete Url
var pathname = window.location.href;
// http://localhost:1003/about/home.aspx