jquery to get the url of the current page code example
Example: jquery get url
var currentURL = $(location).attr('href');
var currentURL = window.location.href;
var currentURL = $(location).attr('href');
var currentURL = window.location.href;