Extract Hostname Portion Of Url With Javascript

Here is way to extract url from javascript


View Demo