I am assuming that you are searching for window.location.hostname
or window.location.host
.
How to get the hostUrl from the command line in javascript
-
10-10-2022 - |
Question
I was wondering how I would get the hostUrl in JavaScript which is passed from the command line
In Java, one would type System.getProperty("hostUrl"); to achieve this. What is the alternative to this in JavaScript?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow