jquery get current url complete code example
Example: jquery get current url
var currentURL = $(location).attr('href'); //jQuery solution
var currentURL = window.location.href; // raw javascript
var currentURL = $(location).attr('href'); //jQuery solution
var currentURL = window.location.href; // raw javascript