How to Get Current Page URL Using jQuery

This blog all about how to get the current URL using jQuery. But Questions is the current URL means full page URL or part of the URL. For example, if the total URL is http://192.168.1.147:8080/sign/



The output will be http://192.168.1.147:8080/sign/. Here current URL can be obtained by simply using jquery attr() in-built method by passing the parameter “href”, Find the below code to get the current URL for a page or we can say it full page URL.