How to Get Base URL Using jQuery

This blog all about how to get the base URL using jQuery. For example, if the total URL is http://192.168.1.147:8080/sign/



The output will be http://192.168.1.147:8080 . Here base URL can be obtained by simply using jquery attr() in-built method by passing the parameter “origin”, Find the below code to get the base URL for a page.

Get Current URL Using jQuery



Tags: ,