In this post we will see how we can get the current URL in jQuery.<script>
$(document).ready(function ($) {
alert(window.location);
});
</script>
Here window.location will return the current location/url of your browser.
Please see my other posts related to JQuery here: JQuery Posts.
