Updated: 04 June 2017, 00:48:09.
How to get Base URL or Root URL using Javascript

I ran into a situation while developing a website where I needed to get a specific part of URL. Think of a URL, http://localhost/testjs/index.html. I want to extract both the base URL and the root URL which are,

Continue Reading ...


Recent Works