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

Returns the Location object's URL's host.

Cannot be set in Deno.

Type

string