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

Returns the Location object's URL's host and port (if different from the default port for the scheme).

Cannot be set in Deno.

Type

string
Back to top