Location.hostname - Web documentation
property Location.hostname

Returns the Location object's URL's host.

Cannot be set in Deno.

Type

string