getHost

getHost ( string url ) : string

Return the host of an URL

Example


console(getHost("https://www.idia-tech.com/getHost.html")) //-> www.idia-tech.com

Parameters

url

URL of the page