Skip to main content
Location.hostname - Platform - Web documentation
property Location.hostname
Private

Returns the Location object's URL's host.

Cannot be set in Deno.

Type

string